import type { CloudflareControlPlaneConfig, CloudflareResolvedSecret, CloudflareValidateInput } from './types.js';
export interface TokenResolverContext {
    readonly secretsManager?: Pick<{
        get(key: string): Promise<string | null>;
        getGlobalHome(): string | undefined;
    }, 'get' | 'getGlobalHome'> | null | undefined;
    readonly authToken?: (() => string | null) | undefined;
    readonly readConfig: () => CloudflareControlPlaneConfig;
}
export declare function resolveAccountId(ctx: TokenResolverContext, inputAccountId: string | undefined): string;
export declare function resolveWorkerName(ctx: TokenResolverContext, inputWorkerName: string | undefined, defaultWorkerName: string): string;
export declare function resolveApiToken(ctx: TokenResolverContext, input: Pick<CloudflareValidateInput, 'apiToken' | 'apiTokenRef'>): Promise<CloudflareResolvedSecret>;
export declare function resolveOperatorToken(ctx: TokenResolverContext, input: {
    readonly operatorToken?: string | undefined;
    readonly operatorTokenRef?: string | undefined;
}): Promise<CloudflareResolvedSecret>;
export declare function resolveWorkerClientToken(ctx: TokenResolverContext, input: {
    readonly workerClientToken?: string | undefined;
    readonly workerClientTokenRef?: string | undefined;
}): Promise<CloudflareResolvedSecret>;
export declare function resolveSecretRef(ctx: TokenResolverContext, ref: string): Promise<CloudflareResolvedSecret>;
//# sourceMappingURL=cloudflare-token-resolvers.d.ts.map