import { z } from "zod"; /** Maximum length of an asset namespace, in characters. */ export declare const ASSET_NAMESPACE_MAX_LENGTH = 120; /** Human-readable statement of the namespace rule. Reused in API errors. */ export declare const ASSET_NAMESPACE_RULE = "\"namespace\" must be 1-120 characters of letters, numbers, or / _ - . : @ |, and cannot contain \".\" or \"..\" path segments"; export declare const createAssetImageMetadataSchema: z.ZodObject<{ namespace: z.ZodOptional; }, z.core.$strip>; export type CreateAssetImageMetadata = z.infer; /** * Make a namespace that `createAssetImageMetadataSchema` accepts. * * Each "/"-separated segment keeps its accepted characters. Other characters * become "-", repeated dashes collapse, and empty, "." and ".." segments go * away. The result is at most `ASSET_NAMESPACE_MAX_LENGTH` characters. * * Returns undefined when no segment survives. Callers then send no namespace * and the server applies its default. */ export declare function sanitizeAssetNamespace(namespace: string): string | undefined; //# sourceMappingURL=asset.d.ts.map