export declare function ensureAutopilotSliceSchemaPath(schemaFilename: string): string; export declare function parseSliceResult(raw: string): T | null; export declare function readSliceOutputFile(pathname: string): string | null; export declare function readFileTailSafe(pathname: string, maxChars?: number): string; /** * Extract a CLI session ID from structured output JSON (Claude/Codex envelope). * Looks for `session_id`, `sessionId`, or `conversation_id` fields. */ export declare function extractSessionIdFromOutput(raw: string, _sourceClient?: string): string | null; /** * Extract a CLI session ID from worker log text. * Matches patterns emitted by Claude Code and Codex CLIs. */ export declare function extractSessionIdFromLog(logContent: string, _sourceClient?: string): string | null; export declare function fileUpdatedAtEpochMs(pathname: string, fallbackEpochMs: number): number; export type CodexBinInfo = { bin: string; version: [number, number, number] | null; versionString: string | null; }; export declare function normalizeCodexArgs(args: string[]): string[]; export declare function createCodexBinResolver(): { resolveCodexBinInfo: () => CodexBinInfo; getCachedCodexProbeSummary: () => string | null; }; export declare function buildSliceOutputInstructions(input: { runId: string; schemaPath: string; requiredSkills: string[]; }): string; export declare function buildWorkstreamSlicePrompt(input: { initiativeTitle: string; initiativeId: string; workstreamId: string; workstreamTitle: string; milestoneSummaries: Array<{ id: string; title: string; status: string; }>; taskSummaries: Array<{ id: string; title: string; status: string; milestoneId: string | null; }>; executionPolicy: { domain: string; requiredSkills: string[]; }; behaviorConfig?: { configId?: string | null; version?: string | null; hash?: string | null; policySource?: string | null; context?: string | null; } | null; runId: string; schemaPath: string; }): string; export type BuildScopeDirectiveScope = "task" | "milestone" | "workstream"; export declare function buildScopeDirective(scope: BuildScopeDirectiveScope, meta: { milestoneTitles?: string[]; workstreamTitle?: string; taskCount: number; }): string;