import { C as CustomerData } from '../cusTypes-BD42O-7Z.js';

declare const withAuth: <T extends {
    customerId?: string;
    customerData?: CustomerData;
    authProvider?: string;
}>({ fn, withCustomerData, requireCustomer, }: {
    fn: (args: T) => Promise<any>;
    withCustomerData?: boolean;
    requireCustomer?: boolean;
}) => (args: Omit<T, "customerId"> & {
    encryptedCustomerId?: string;
}, request?: Request) => Promise<any>;

export { withAuth };
