import type { EditHandler } from "./editHandler.js"; /** * Registry for all edit handlers */ export declare class EditHandlerRegistry { /** * Map of all edit handlers which are registered by their exact type */ private readonly exactMatchingHandlers; /** * List of all edit handlers which are registered by their regex type */ private readonly regexMatchingHandlers; /** * Creates a new TransactionalEditRegistory * * @param handler the edit handlers to register */ constructor(handler: EditHandler[]); /** * Returns the edit handler for the given type. * If no handler is found for the type, an error is thrown. * * @param type the type of the edit to get the handler for * @returns the edit handler */ getEditHandler(type: string): EditHandler | undefined; } /** * Default registry for all edits */ export declare const defaultEditRegistry: EditHandlerRegistry; //# sourceMappingURL=editHandlerRegistry.d.ts.map