/** * Internal built-in template metadata defaults used by scaffold rendering. */ export declare const BUILTIN_BLOCK_METADATA_VERSION = "0.1.0"; /** * Built-in parent block metadata defaults keyed by template id. */ export declare const BUILTIN_TEMPLATE_METADATA_DEFAULTS: Readonly<{ basic: Readonly<{ category: "text"; icon: "smiley"; }>; interactivity: Readonly<{ category: "widgets"; icon: "smiley"; }>; persistence: Readonly<{ category: "widgets"; icon: "database"; }>; compound: Readonly<{ category: "widgets"; icon: "screenoptions"; }>; 'query-loop': Readonly<{ category: "widgets"; icon: "query-pagination"; }>; }>; /** * Shared hidden child block metadata defaults for compound scaffolds. */ export declare const COMPOUND_CHILD_BLOCK_METADATA_DEFAULTS: Readonly<{ category: "widgets"; icon: "excerpt-view"; }>; /** * Legacy built-in template ids that were removed in favor of persistence modes. */ export declare const REMOVED_BUILTIN_TEMPLATE_IDS: readonly ['data', 'persisted']; /** * Union of removed built-in template ids accepted by compatibility checks. */ export type RemovedBuiltInTemplateId = (typeof REMOVED_BUILTIN_TEMPLATE_IDS)[number]; /** * Returns the metadata defaults for a built-in scaffold template id. * * @param templateId Built-in template id whose metadata defaults should be read. * @returns The stable category/icon defaults used by scaffold rendering. */ export declare function getBuiltInTemplateMetadataDefaults(templateId: keyof typeof BUILTIN_TEMPLATE_METADATA_DEFAULTS): Readonly<{ category: "text"; icon: "smiley"; }> | Readonly<{ category: "widgets"; icon: "smiley"; }> | Readonly<{ category: "widgets"; icon: "database"; }> | Readonly<{ category: "widgets"; icon: "screenoptions"; }> | Readonly<{ category: "widgets"; icon: "query-pagination"; }>; /** * Checks whether a template id points at a removed built-in scaffold. * * @param templateId Template id supplied to scaffold resolution. * @returns True when the template id is one of the removed legacy built-ins. */ export declare function isRemovedBuiltInTemplateId(templateId: string): templateId is RemovedBuiltInTemplateId; /** * Builds the stable recovery guidance shown for removed built-in template ids. * * @param templateId Removed template id, where `data` maps to the public policy and * `persisted` maps to the authenticated policy. * @returns A user-facing error string in the form * `Built-in template "" was removed. Use --template persistence --persistence-policy instead.` */ export declare function getRemovedBuiltInTemplateMessage(templateId: RemovedBuiltInTemplateId): string;