forked from Yara724/api
22 lines
492 B
TypeScript
22 lines
492 B
TypeScript
declare module "svg-captcha" {
|
|
export interface CaptchaOptions {
|
|
size?: number;
|
|
ignoreChars?: string;
|
|
noise?: number;
|
|
color?: boolean;
|
|
background?: string;
|
|
width?: number;
|
|
height?: number;
|
|
fontSize?: number;
|
|
charPreset?: string;
|
|
}
|
|
|
|
export interface CaptchaResult {
|
|
data: string;
|
|
text: string;
|
|
}
|
|
|
|
export function create(options?: CaptchaOptions): CaptchaResult;
|
|
export function createMathExpr(options?: CaptchaOptions): CaptchaResult;
|
|
}
|