export declare function collectCandidateBinaryPaths(pathEnv: string | undefined, which?: (command: string) => string | null | undefined, platform?: NodeJS.Platform): string[]; export declare function canExecuteBinary(binaryPath: string): Promise; export declare function findWorkingOpencodeBinary(pathEnv?: string | undefined, probe?: (binaryPath: string) => Promise, which?: (command: string) => string | null | undefined, platform?: NodeJS.Platform): Promise; export declare function buildPathWithBinaryFirst(pathEnv: string | undefined, binaryPath: string): string; export declare function withWorkingOpencodePath(startServer: () => Promise, finder?: (pathEnv: string | undefined) => Promise): Promise;