import type { PiMessage } from "./types"; /** Resolve a promise with a timeout fallback. Never rejects — logs on timeout. */ export declare function withTimeout(promise: Promise, ms: number, _label: string): Promise; /** Extract the final text output from parsed pi messages. */ export declare function getFinalOutput(messages: PiMessage[]): string; /** * Collect environment variables to forward from the host to the VM. * * Two sources are merged (explicit overrides prefix): * 1. `FREESTYLE_ENV_*` prefix convention — e.g. FREESTYLE_ENV_GITHUB_TOKEN * becomes GITHUB_TOKEN in the VM. * 2. Explicit `GITHUB_TOKEN` on the host (kept for backwards compatibility). * * Freestyle-internal vars (FREESTYLE_API_KEY, FREESTYLE_API_URL) are excluded. */ export declare function collectForwardedEnv(): Record; //# sourceMappingURL=utils.d.ts.map