import type { Prisma } from '../../../../../prisma/client';
export declare class InvalidServiceAccountKeyError extends Error {
    constructor(message: string);
}
export declare function ensureDomainWideDelegationNotAlreadyConfigured({ domain, currentOrganizationId, dwdBeingUpdatedId, }: {
    domain: string;
    currentOrganizationId: number;
    dwdBeingUpdatedId: string | null;
}): Promise<void>;
export declare function parseServiceAccountKey(serviceAccountKey: Prisma.JsonValue): {
    client_id: string;
    client_email: string;
    private_key: string;
} | null;
export declare const handleDomainWideDelegationError: (error: unknown) => never;
export declare const ensureNoServiceAccountKey: <T extends {
    id: string;
    serviceAccountKey?: unknown;
} | null>(domainWideDelegation: T) => (Omit<NonNullable<T>, "serviceAccountKey"> & {
    serviceAccountKey: undefined;
}) | null;
//# sourceMappingURL=utils.d.ts.map