import { z } from 'zod'; import { type ConfigOf, type RedactedConfig } from '../../resource/secrets.ts'; export type GoogleAccessTokenProvider = () => string | Promise; export type GoogleRefreshFn = (refreshToken: string) => Promise<{ accessToken: string; expiresIn: number; }>; export declare const GOOGLE_CREDENTIAL_ERROR = "GoogleConfig needs either accessToken (a token or a provider callable) or both clientId and refreshToken"; export declare const GoogleConfigSchema: z.ZodObject<{ accessToken: z.ZodOptional]>>; clientId: z.ZodOptional; clientSecret: z.ZodOptional; refreshToken: z.ZodOptional; refreshFn: z.ZodOptional>; apiBase: z.ZodOptional; folderId: z.ZodOptional; }, z.core.$strip>; export type GoogleConfig = ConfigOf; export type GoogleConfigRedacted = RedactedConfig; export declare function redactGoogleConfig(config: GoogleConfig): GoogleConfigRedacted; export declare function normalizeGoogleConfig(input: Record): GoogleConfig; //# sourceMappingURL=config.d.ts.map