export type FeishuSlash = { command: string; description: string; }; export declare function clampFeishuDescription(text: string): string; export type FeishuRemoteSlash = { command_id: string; command: string; description?: { default_value?: string; }; }; export type FeishuHttp = { getToken: () => Promise; list: (token: string) => Promise; create: (token: string, slash: FeishuSlash) => Promise; update: (token: string, id: string, description: string) => Promise; remove: (token: string, id: string) => Promise; }; export type SlashSyncPlan = { create: FeishuSlash[]; update: { id: string; description: string; }[]; remove: string[]; }; export declare function planFeishuSlashSync(desired: readonly FeishuSlash[], remote: readonly FeishuRemoteSlash[]): SlashSyncPlan; export declare function syncFeishuSlashes(http: FeishuHttp, desired: readonly FeishuSlash[]): Promise; export declare function feishuSlashHttp(appId: string, appSecret: string): FeishuHttp;