koishi-plugin-image-tools
Version:
Simple image operating plugin
16 lines (15 loc) • 668 B
TypeScript
import { Computed, Context, Schema, h } from 'koishi';
import { AvailableZipType, name } from './utils';
export { name };
export declare const inject: string[];
export interface Config {
sendOneByOne: Computed<boolean>;
overflowThreshold: Computed<number>;
overflowSendType: Computed<'multi' | 'forward' | 'file'>;
oneByOneInForward: Computed<boolean>;
zipFileType: AvailableZipType;
useBase64SendFile: boolean;
}
export declare const Config: Schema<Config>;
export declare const errorHandle: <R extends h.Fragment, F extends () => Promise<R>>(func: F) => Promise<R>;
export declare function apply(ctx: Context, config: Config): Promise<void>;