koishi-plugin-memes-api
Version:
表情包制作插件调用 API 版
22 lines (21 loc) • 1 kB
TypeScript
import type { FileResponse } from '@cordisjs/plugin-http';
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;
export declare function checkInRange(value: number, min: number, max: number): boolean;
export declare function constructBlobFromFileResp(resp: FileResponse): Blob;
export declare function formatRange(min: number, max: number): string;
export declare function formatKeywords(keywords: string[]): string;
export declare function listJoin<T, V>(list: T[], splitter: V): (T | V)[];