//#region src/services/fableFlow/index.d.ts declare const FABLE_PROVIDER_SOURCE = "@agimon-ai/doompi-team"; declare const FABLE_PLAN_REQUESTER = "@agimon-ai/doompi-plan"; declare const FABLE_PLAN_RUNTIME = "claude"; declare const FABLE_PLAN_MODEL = "fable"; declare const FABLE_PLAN_PROFILE = "claude/fable-plan-v1"; declare const MAX_FABLE_PACKET_BYTES: number; declare const MAX_FABLE_TEXT_BYTES: number; declare const MAX_FABLE_ARRAY_ITEMS = 24; interface FablePlanFinding { path: string; finding: string; } interface FablePlanPacket { goal: string[]; constraints: string[]; decisions: string[]; verifiedFindings: FablePlanFinding[]; inferredFindings: string[]; unresolvedQuestions: string[]; currentPlan?: string; } type FablePlanStatus = 'completed' | 'failed' | 'timed_out' | 'cancelled' | 'interrupted'; type FablePlanStage = 'draft' | 'review' | 'completed' | 'failed' | 'cancelled' | 'interrupted'; interface FablePlanResult { operationId: string; status: FablePlanStatus; stage: FablePlanStage; draft?: string; review?: string; draftRunId?: string; reviewRunId?: string; durationMs: number; errorCode?: string; } interface FablePlanRequest { requester: typeof FABLE_PLAN_REQUESTER; operationId: string; runtime: typeof FABLE_PLAN_RUNTIME; model: typeof FABLE_PLAN_MODEL; profile: typeof FABLE_PLAN_PROFILE; packet: FablePlanPacket; } interface FablePlanBroker { start(request: FablePlanRequest, signal: AbortSignal): Promise; cancel(operationId: string, reason: string): void; } interface FableFlowOptions { broker?: FablePlanBroker; isAuthorized: () => boolean; /** Supplies operation ids. Injected so a test can pin them. */ newOperationId?: () => string; timeoutMs?: number; onStage?: (stage: FableStage) => void; onError?: (error: unknown) => void; } type FableStage = 'idle' | 'draft' | 'review' | 'completed' | 'failed' | 'cancelled' | 'interrupted'; interface FablePlanFlow { run(value: unknown, signal?: AbortSignal): Promise; cancel(reason?: string): void; isActive(): boolean; } declare function containsSuspectedCredential(value: string): boolean; declare function sanitizeFablePacket(value: unknown): FablePlanPacket; declare function createFablePlanFlow(options: FableFlowOptions): FablePlanFlow; //#endregion export { MAX_FABLE_PACKET_BYTES as _, FABLE_PROVIDER_SOURCE as a, createFablePlanFlow as b, FablePlanFinding as c, FablePlanRequest as d, FablePlanResult as f, MAX_FABLE_ARRAY_ITEMS as g, FableStage as h, FABLE_PLAN_RUNTIME as i, FablePlanFlow as l, FablePlanStatus as m, FABLE_PLAN_PROFILE as n, FableFlowOptions as o, FablePlanStage as p, FABLE_PLAN_REQUESTER as r, FablePlanBroker as s, FABLE_PLAN_MODEL as t, FablePlanPacket as u, MAX_FABLE_TEXT_BYTES as v, sanitizeFablePacket as x, containsSuspectedCredential as y }; //# sourceMappingURL=index-lbK8nFPy.d.mts.map