import type { ExtensionContext } from "@earendil-works/pi-coding-agent"; import type { SearchOptions, SearchResponse } from "./perplexity.ts"; type ProviderHeaders = Record; export declare class OpenAIAlphaSearchUnsupportedError extends Error { } interface OpenAIAuth { provider: string; apiKey: string; model: string; headers: ProviderHeaders; responsesUrl: string; useCodexEndpoint?: boolean; useProviderBaseUrl?: boolean; } export declare function isOpenAISubscriptionModelSelected(ctx?: Pick & { modelRegistry?: Pick; }): boolean; export declare function isCurrentModelHostedSearchEligible(ctx?: Pick): boolean; export declare function resolveOpenAIAuth(ctx?: ExtensionContext, signal?: AbortSignal): Promise; export declare function isOpenAISearchAvailable(ctx?: ExtensionContext): Promise; export declare function searchWithOpenAI(query: string, options?: SearchOptions, ctx?: ExtensionContext): Promise; export declare function searchWithCurrentModelOpenAI(query: string, options?: SearchOptions, ctx?: ExtensionContext): Promise; export declare function searchWithVirtualModel(query: string, options?: SearchOptions, ctx?: ExtensionContext): Promise; export {};