export type CopilotAuthState = { type: string; refresh?: string; access?: string; expires?: number; enterpriseUrl?: string; }; export type CopilotProviderModel = { id?: string; api: { url?: string; npm?: string; }; cost?: { input: number; output: number; cache: { read: number; write: number; }; }; }; export type CopilotProviderConfig = { models?: Record; }; export type OfficialCopilotConfig = { baseURL?: string; apiKey: string; fetch: (request: Request | URL | string, init?: RequestInit) => Promise; }; export type OfficialChatHeadersHook = (input: { sessionID: string; agent: string; model: { providerID: string; api?: { npm?: string; }; }; provider: { source: string; info: object; options: object; }; message: { id: string; sessionID?: string; }; }, output: { headers: Record; }) => Promise; export declare function loadOfficialCopilotConfig(input: { getAuth: () => Promise; baseFetch?: typeof fetch; provider?: CopilotProviderConfig; version?: string; }): Promise; export declare function createOfficialFetchAdapter(input: { getAuth: () => Promise; baseFetch?: typeof fetch; provider?: CopilotProviderConfig; version?: string; }): (request: Request | URL | string, init?: RequestInit) => Promise; export declare function loadOfficialCopilotChatHeaders(input: { client?: object; directory?: string; }): Promise;