import type { IncomingMessage, ServerResponse } from 'node:http';
import type { TriggerRequest, TriggerResponse } from '../services/trigger-types.js';
export declare function readJsonBodyWithLimit<T = unknown>(req: IncomingMessage, maxBytes?: number): Promise<T>;
export declare function newTriggerId(): string;
export type TriggerApiDeps = {
    proxyToDaemon: (larkAppId: string, daemonPath: string, init: RequestInit) => Promise<Response>;
};
export declare function dispatchTriggerRequest(body: TriggerRequest, deps: TriggerApiDeps): Promise<{
    status: number;
    body: TriggerResponse;
}>;
export declare function handleDashboardTriggerApi(req: IncomingMessage, res: ServerResponse, deps: TriggerApiDeps): Promise<void>;
//# sourceMappingURL=trigger-api.d.ts.map