import { Context } from '@deepseek-ai/cordis'; import { TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol'; import { Agent } from 'undici'; import type { CopilotUsageView } from './copilot-usage-types.ts'; import type { CopilotAccountBinding } from './copilot-accounts-types.ts'; export declare const COPILOT_USAGE_ENDPOINT = "https://api.github.com/copilot_internal/user"; interface Dependencies { readonly accountId?: string; readCredential(): Promise; fetch?: typeof globalThis.fetch; now?: () => number; getCACertificates?: (type: 'default' | 'system') => string[]; createDispatcher?: (options: Agent.Options) => Agent; } /** One Host-owned, memory-only account cache. No auth renewal, persistence or model transport. */ export declare class CopilotUsageSource { private readonly dependencies; private readonly fetcher; private readonly now; private dispatcher; private generation; private disposed; private key; private cached; private last; private nextRefreshAt; private failureUntil; private flight; constructor(dependencies: Dependencies); invalidate(): void; dispose(): Promise; get(): Promise; refresh(): Promise; private active; private readAuth; private assertCurrent; private diagnostic; private quotaDispatcher; private load; private fetchQuota; private request; } declare module '@deepseek-ai/cordis' { interface Context { githubCopilotUsage: GitHubCopilotUsageController; } } export default class GitHubCopilotUsageController extends TypertRemoteService { private readonly accountSources; private source; private accountSignature; private sourceInitialized; constructor(ctx: Context); forAccount(binding: CopilotAccountBinding, force?: boolean): Promise; private createSource; private current; get(): Promise; refresh(): Promise; } export {}; //# sourceMappingURL=copilot-usage-host.d.ts.map