export declare function setCopilotSettingsToken(token: string | undefined): void; export declare function clearCopilotAuthCache(): void; /** Expose the npm root path so callers can run `npm rebuild` there. */ export declare function copilotNpmRoot(): string; /** Clear the cached SDK dynamic import so the next call to _getSdk() re-imports it. */ export declare function clearCopilotSdkCache(): void; export declare function isCopilotSdkBusy(root: string): boolean; export declare function getLatestCopilotSdkSessionId(root: string): string | undefined; /** * Steer the live Copilot SDK session MID-TURN. Unlike copilot-cli (a one-shot * subprocess), the SDK holds a persistent LocalSession whose send() accepts * mode:'immediate' — the message is injected into the CURRENTLY-RUNNING turn * (the model's next call includes it) instead of the default 'enqueue' which * waits for the next turn. Returns true only if there's a live/busy session to * inject into; false otherwise, so the caller falls back to the durable TODO * queue (at-least-once delivery preserved). */ export declare function steerCopilotSdk(root: string, text: string, log: (msg: string) => void): Promise; export declare function readCopilotSdkOutputSince(stdoutFile: string, fromByte: number): string; export declare function sendCopilotSdkPrompt(root: string, promptFilePath: string, _resolvedSessionId: string | undefined, stdoutFile: string, exitFile: string, log: (msg: string) => void, showOutput?: () => void): void; export declare function closeCopilotSdkSession(root: string, log: (msg: string) => void): void; export declare function closeAllCopilotSdkSessions(): void;