koishi-plugin-memes-api
Version:
表情包制作插件调用 API 版
16 lines (15 loc) • 562 B
TypeScript
export declare class ArgSyntaxError extends SyntaxError {
readonly type: ArgSyntaxError.Type;
readonly char: string;
readonly index: number;
constructor(type: ArgSyntaxError.Type, char: string, index: number);
}
export declare namespace ArgSyntaxError {
enum Type {
UnexpectedChar = 0,
UnterminatedQuote = 1
}
function getI18NKey(e: ArgSyntaxError): string;
}
export declare function splitArgString(argString: string): string[];
export declare function escapeArgs(args: string[], extraShouldQuote?: string[]): string;