UNPKG

koishi-plugin-memos-connector

Version:
20 lines (19 loc) 740 B
import { Context, HTTP, Schema } from 'koishi'; export declare const name = "memos-connector"; export interface Config { memos_sverver?: string; token?: string; } export declare const Config: Schema<Config>; export declare const VISIBILITY: { VISIBILITY_UNSPECIFIED: string; PRIVATE: string; PROTECTED: string; PUBLIC: string; }; export declare const addMemo: (ctx: Context, config: Config, content: any, visibility?: string) => Promise<HTTP.Response<any>>; export declare let startContinuousInput: boolean; export declare let memoContextFianl: string; export declare let memoCreatRes: HTTP.Response<any>; export declare let memoVisibility: string; export declare function apply(ctx: Context, config: Config): void;