import { z } from 'zod';
import { MouseEvent } from 'react';
declare const resourceCdnFormSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
    provider: z.ZodLiteral<"s3">;
    name: z.ZodString;
    domain: z.ZodString;
    region: z.ZodString;
    endpoint: z.ZodOptional<z.ZodString>;
    bucketName: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    provider: z.ZodLiteral<"r2">;
    name: z.ZodString;
    domain: z.ZodString;
    region: z.ZodDefault<z.ZodString>;
    endpoint: z.ZodString;
    bucketName: z.ZodString;
}, z.core.$strip>], "provider">;
export type ResourceCdnFormProps = {
    className?: string;
    name?: string;
    domain?: string;
    provider?: 's3' | 'r2';
    region?: string;
    endpoint?: string;
    bucketName?: string;
    onClose?: (e?: MouseEvent) => void;
    onSubmit?: (e: MouseEvent | undefined, values: z.infer<typeof resourceCdnFormSchema>) => void;
};
declare const ResourceCdnForm: ({ name, domain, provider, region, endpoint, bucketName, onSubmit, onClose }: ResourceCdnFormProps) => import("react/jsx-runtime").JSX.Element;
export default ResourceCdnForm;
