import type { z } from "zod";
import type { DelegationCredentialToggleEnabledSchema } from "./schema";
type LoggedInUser = {
    id: number;
    email: string;
    locale: string;
    emailVerified: Date | null;
    organizationId: number | null;
};
export default function toggleEnabledHandler({ ctx, input, }: {
    ctx: {
        user: LoggedInUser;
    };
    input: z.infer<typeof DelegationCredentialToggleEnabledSchema>;
}): Promise<{
    id: string;
    enabled: boolean;
    domain: string;
    organizationId: number;
    workspacePlatform: {
        name: string;
        slug: string;
    };
    createdAt: Date;
    updatedAt: Date;
    lastEnabledAt: Date | null;
    lastDisabledAt: Date | null;
} | null>;
export declare function toggleDelegationCredentialEnabled(loggedInUser: Omit<LoggedInUser, "locale" | "emailVerified">, input: z.infer<typeof DelegationCredentialToggleEnabledSchema>): Promise<{
    id: string;
    enabled: boolean;
    domain: string;
    organizationId: number;
    workspacePlatform: {
        name: string;
        slug: string;
    };
    createdAt: Date;
    updatedAt: Date;
    lastEnabledAt: Date | null;
    lastDisabledAt: Date | null;
} | null>;
export {};
//# sourceMappingURL=toggleEnabled.handler.d.ts.map