import type { BlockHandler } from "./handler.type.js";
/**
* Resolve handler for a block type.
* For unregistered `widget:*`, `html:*`, and `router-slot` types,
* creates and caches a default handler.
*/
export declare function resolveHandler(type: string): BlockHandler | undefined;
/** Get a registered handler without lazy creation. */
export declare function getHandler(type: string): BlockHandler | undefined;
/** List all registered handler type names. */
export declare function listHandlers(): string[];
/**
* Register a custom block handler.
* Overwrites any existing handler for the same type.
*
* @example
* ```ts
* registerHandler("widget:chart", {
* render(raw, attrs) { return ``; },
* serialize(raw) { return "```widget:chart\n" + raw + "\n```"; },
* });
* ```
*/
export declare function registerHandler(type: T, handler: BlockHandler): void;
/**
* Remove a previously registered handler.
* Returns `true` if the handler existed, `false` otherwise.
*/
export declare function unregisterHandler(type: string): boolean;
//# sourceMappingURL=registry.d.ts.map