import type z from "zod";
import type { OAuth2UniversalSchemaWithCalcomBackwardCompatibility } from "./universalSchema";
/**
 * @deprecated Use updateTokenObjectInDb instead
 */
export declare const updateTokenObject: ({ tokenObject, credentialId, }: {
    tokenObject: z.infer<typeof OAuth2UniversalSchemaWithCalcomBackwardCompatibility>;
    credentialId: number;
}) => Promise<void>;
/**
 * OAuthManager helper to update the token object in db.
 *
 * It ensures that the token goes in DB. For JWT flow, it also creates a delegation user credential if not present
 */
export declare const updateTokenObjectInDb: (args: {
    tokenObject: z.infer<typeof OAuth2UniversalSchemaWithCalcomBackwardCompatibility>;
} & ({
    authStrategy: "jwt";
    userId: number | null;
    credentialType: string;
    appId: string;
    delegatedToId: string | null;
} | {
    authStrategy: "oauth";
    credentialId: number;
})) => Promise<void>;
//# sourceMappingURL=updateTokenObject.d.ts.map