import { type RuntimeConfig } from "./config.js"; import type { UsageStatsHostContext } from "./context.js"; export declare const name = "usage-stats"; export declare const inject: readonly ["webServer"]; export declare const Config: import("zod").ZodPreprocess; accountMinutes: import("zod").ZodDefault; accountConcurrency: import("zod").ZodDefault; timeoutMs: import("zod").ZodDefault; accountMode: import("zod").ZodDefault>; accountAdaptiveMinMinutes: import("zod").ZodDefault; accountAdaptiveMaxMinutes: import("zod").ZodDefault; }, import("zod/v4/core").$strip>>; retention: import("zod").ZodDefault; accountSnapshotDays: import("zod").ZodDefault; preserveDeletedSessions: import("zod").ZodDefault; }, import("zod/v4/core").$strip>>; accounts: import("zod").ZodOptional; monitors: import("zod").ZodOptional; oauthDevice: import("zod").ZodDefault; }, import("zod/v4/core").$strip>>; pricing: import("zod").ZodDefault>>; }, import("zod/v4/core").$strip>>; codingOAuth: import("zod").ZodDefault; proxy: import("zod").ZodOptional; proxyKimi: import("zod").ZodDefault; retryPolicy: import("zod").ZodOptional>; capabilities: import("zod").ZodOptional; codexImages: import("zod").ZodOptional; codexImageEdits: import("zod").ZodOptional; codexUsage: import("zod").ZodOptional; codexFast: import("zod").ZodOptional; grokImagineImage: import("zod").ZodOptional; grokImagineVideo: import("zod").ZodOptional; searchResults: import("zod").ZodOptional; imageCount: import("zod").ZodOptional; videoArtifactTtlMs: import("zod").ZodOptional; }, import("zod/v4/core").$strict>>; gateway: import("zod").ZodOptional; bind: import("zod").ZodDefault; port: import("zod").ZodDefault; apiKey: import("zod").ZodOptional; rateLimit: import("zod").ZodDefault; opencodeGo: import("zod").ZodDefault; }, import("zod/v4/core").$strict>>; }, import("zod/v4/core").$strict>>; ownerRequest: import("zod").ZodOptional>; trustedProxy: import("zod").ZodOptional; origins: import("zod").ZodArray; ownerProof: import("zod").ZodString; csrfToken: import("zod").ZodString; }, import("zod/v4/core").$strict>>; }, import("zod/v4/core").$strict>>; pool: import("zod").ZodDefault>; switchMargin: import("zod").ZodDefault; }, import("zod/v4/core").$strict>>; }, import("zod/v4/core").$strict>>; localMonitor: import("zod").ZodDefault; }, import("zod/v4/core").$strict>>; localUsage: import("zod").ZodDefault; intervalMinutes: import("zod").ZodDefault; maxFileBytes: import("zod").ZodDefault; maxTotalBytes: import("zod").ZodDefault; retentionDays: import("zod").ZodDefault; }, import("zod/v4/core").$strict>>; statusProbes: import("zod").ZodDefault; }, import("zod/v4/core").$strict>>; debug: import("zod").ZodDefault; }, import("zod/v4/core").$strict>, import("zod").ZodTransform<{ accounts: {}; refresh: { usageSeconds: number; accountMinutes: number; accountConcurrency: number; timeoutMs: number; accountMode: "fixed" | "adaptive"; accountAdaptiveMinMinutes: number; accountAdaptiveMaxMinutes: number; }; retention: { usageDays: number; accountSnapshotDays: number; preserveDeletedSessions: boolean; }; oauthDevice: { copilotClientId?: string | undefined; }; pricing: { baseCurrency: string; }; codingOAuth: { enabled: boolean; proxyKimi: boolean; pool: { mode: "off" | "priority" | "quota_aware"; switchMargin: number; }; proxy?: string | undefined; retryPolicy?: Record | undefined; capabilities?: { codexSearch?: boolean | undefined; codexImages?: boolean | undefined; codexImageEdits?: boolean | undefined; codexUsage?: boolean | undefined; codexFast?: boolean | undefined; grokImagineImage?: boolean | undefined; grokImagineVideo?: boolean | undefined; searchResults?: number | undefined; imageCount?: number | undefined; videoArtifactTtlMs?: number | undefined; } | undefined; gateway?: { enabled: boolean; bind: string; port: number; rateLimit: number; opencodeGo: { enabled: boolean; }; apiKey?: string | undefined; } | undefined; ownerRequest?: { loopbackAccessMode?: "loopback" | "ssh-tunnel" | undefined; trustedProxy?: { peers: string[]; origins: string[]; ownerProof: string; csrfToken: string; } | undefined; } | undefined; }; localMonitor: { enabled: boolean; }; localUsage: { enabled: boolean; intervalMinutes: number; maxFileBytes: number; maxTotalBytes: number; retentionDays: number; }; statusProbes: { enabled: boolean; }; debug: boolean; }, { refresh: { usageSeconds: number; accountMinutes: number; accountConcurrency: number; timeoutMs: number; accountMode: "fixed" | "adaptive"; accountAdaptiveMinMinutes: number; accountAdaptiveMaxMinutes: number; }; retention: { usageDays: number; accountSnapshotDays: number; preserveDeletedSessions: boolean; }; oauthDevice: { copilotClientId?: string | undefined; }; pricing: { baseCurrency: string; }; codingOAuth: { enabled: boolean; proxyKimi: boolean; pool: { mode: "off" | "priority" | "quota_aware"; switchMargin: number; }; proxy?: string | undefined; retryPolicy?: Record | undefined; capabilities?: { codexSearch?: boolean | undefined; codexImages?: boolean | undefined; codexImageEdits?: boolean | undefined; codexUsage?: boolean | undefined; codexFast?: boolean | undefined; grokImagineImage?: boolean | undefined; grokImagineVideo?: boolean | undefined; searchResults?: number | undefined; imageCount?: number | undefined; videoArtifactTtlMs?: number | undefined; } | undefined; gateway?: { enabled: boolean; bind: string; port: number; rateLimit: number; opencodeGo: { enabled: boolean; }; apiKey?: string | undefined; } | undefined; ownerRequest?: { loopbackAccessMode?: "loopback" | "ssh-tunnel" | undefined; trustedProxy?: { peers: string[]; origins: string[]; ownerProof: string; csrfToken: string; } | undefined; } | undefined; }; localMonitor: { enabled: boolean; }; localUsage: { enabled: boolean; intervalMinutes: number; maxFileBytes: number; maxTotalBytes: number; retentionDays: number; }; statusProbes: { enabled: boolean; }; debug: boolean; accounts?: unknown; monitors?: unknown; }>>>; export interface ApplyDependencies { readonly databasePath?: string; readonly disableBackgroundRefresh?: boolean; readonly now?: () => number; } export declare function apply(ctx: UsageStatsHostContext, rawConfig?: RuntimeConfig, dependencies?: ApplyDependencies): Promise; //# sourceMappingURL=index.d.ts.map