import "@sanity/ui/styles.css"; import { AssetSource, ObjectInputProps } from "sanity"; declare const cloudinaryAssetSchema: { type: "object"; name: "cloudinary.asset"; fields: ({ type: "array"; name: string; of: { type: "string"; }[]; } | { type: "array"; name: string; of: { type: string; name: string; }[]; } | { of?: undefined; type: string; name: string; })[]; preview: { select: { url: string; resource_type: string; derived: string; }; prepare({ url, derived, resource_type }: Record<"derived" | "resource_type" | "url", any>): { title: any; value: { title: any; resource_type: any; url: any; }; }; }; }; interface CloudinaryAssetContext { custom: object; } declare const cloudinaryAssetContext: { type: "object"; name: "cloudinary.assetContext"; fields: { type: string; name: string; }[]; }; type CloudinaryAssetContextCustom = { alt: string; caption: string; }; declare const cloudinaryAssetContextCustom: { type: "object"; name: "cloudinary.assetContextCustom"; fields: { type: "string"; name: string; }[]; }; type CloudinaryAssetDerived = { raw_transformation: string; url: string; secure_url: string; }; declare const cloudinaryAssetDerivedSchema: { type: "object"; name: "cloudinary.assetDerived"; fields: ({ type: "string"; name: string; } | { type: "url"; name: string; })[]; }; declare const cloudinaryAssetDocument: { name: "cloudinaryAssetDocument"; title: string; type: "document"; liveEdit: true; fields: { name: string; type: "cloudinary.asset"; title: string; }[]; preview: { select: { caption: string; alt: string; publicId: string; resourceType: string; format: string; secureUrl: string; url: string; derivedUrl: string; }; prepare(selection: Record<"alt" | "caption" | "derivedUrl" | "format" | "publicId" | "resourceType" | "secureUrl" | "url", any>): { title: string; subtitle: string; media: string | undefined; }; }; }; declare const CloudinaryReferenceInput: (props: ObjectInputProps) => import("react").JSX.Element; declare const cloudinaryAssetReference: { name: "cloudinaryAssetReference"; title: string; type: "object"; fields: { name: string; type: "reference"; to: { type: string; }[]; weak: true; }[]; components: { input: typeof CloudinaryReferenceInput; }; preview: { select: { caption: string; alt: string; publicId: string; resourceType: string; format: string; secureUrl: string; url: string; derivedUrl: string; }; prepare(selection: Record<"alt" | "caption" | "derivedUrl" | "format" | "publicId" | "resourceType" | "secureUrl" | "url", any>): { title: string; subtitle: string; media: string | undefined; }; }; }; interface CloudinaryMediaLibrary { show: (config?: { asset: any; folder: any; }) => void; hide: () => void; } type CloudinaryAsset = { _type: string; _key?: string; _version: number; id?: string; public_id: string; resource_type: string; type: string; format: string; version: number; url: string; secure_url: string; width: number; height: number; derived?: CloudinaryAssetDerived[]; display_name?: string; }; type AssetDocument = { _id: string; label?: string; title?: string; description?: string; source?: { id: string; name: string; url?: string; }; creditLine?: string; originalFilename?: string; }; declare global { interface Window { cloudinary?: { openMediaLibrary: (config: any, callbacks: any) => void; createMediaLibrary: (config: any, callbacks?: any) => CloudinaryMediaLibrary; }; } } declare const cloudinaryReferencePlugin: import("sanity").Plugin; declare const cloudinarySchemaPlugin: import("sanity").Plugin; declare const cloudinaryImageSource: AssetSource; declare const cloudinaryAssetSourcePlugin: import("sanity").Plugin; export { type AssetDocument, type CloudinaryAsset, type CloudinaryAssetContext, type CloudinaryAssetContextCustom, type CloudinaryAssetDerived, cloudinaryAssetContext, cloudinaryAssetContextCustom, cloudinaryAssetDerivedSchema, cloudinaryAssetDocument, cloudinaryAssetReference, cloudinaryAssetSchema, cloudinaryAssetSourcePlugin, cloudinaryImageSource, cloudinaryReferencePlugin, cloudinarySchemaPlugin }; //# sourceMappingURL=index.d.ts.map