import type { AutomationExternalContentSource, AutomationWakeMode } from '../automation/index.js'; import type { AutomationExecutionPolicy } from '../automation/index.js'; export type { ChannelConversationKind, ChannelLifecycleAction, JsonRecord } from './http/route-helpers.js'; export { isJsonRecord, missingScopes, readChannelConversationKind, readChannelLifecycleAction, scopeMatches, } from './http/route-helpers.js'; export declare function readStringList(value: unknown): string[] | undefined; export declare function resolveGatewayPathTemplate(template: string, query?: Record, body?: unknown): { readonly path: string | null; readonly missing: readonly string[]; }; export declare function readAutomationWakeMode(value: unknown): AutomationWakeMode | undefined; export declare function readAutomationReasoningEffort(value: unknown): AutomationExecutionPolicy['reasoningEffort'] | undefined; export declare function readExternalContentSource(value: unknown): AutomationExternalContentSource | undefined; /** * Read a response body to text with a hard byte ceiling. Returns * `{ ok:false }` (and cancels the body) when the ceiling is exceeded, the * caller aborts and reports a structured error instead of buffering forever. */ export declare function readBodyBounded(response: Response, maxBytes: number): Promise<{ ok: true; text: string; } | { ok: false; bytesRead: number; }>; //# sourceMappingURL=helpers.d.ts.map