/** * Shared Action Registry - Declarative approach * Eliminates code duplication across examples */ export type ActionHandler = (...args: any[]) => any; export interface ActionDefinition { name: string; handler: ActionHandler; description?: string; } export declare class ActionRegistry { protected handlers: Map; register(def: ActionDefinition): void; execute(name: string, ...args: any[]): any; list(): string[]; has(name: string): boolean; clear(): void; } export declare const createActionRegistry: () => ActionRegistry; export declare const defineActions: (category: string, actions: ActionDefinition[]) => { category: string; actions: ActionDefinition[]; register: (registry: ActionRegistry) => void; }; export declare const mathActions: { category: string; actions: ActionDefinition[]; register: (registry: ActionRegistry) => void; }; export declare const textActions: { category: string; actions: ActionDefinition[]; register: (registry: ActionRegistry) => void; }; export declare const utilityActions: { category: string; actions: ActionDefinition[]; register: (registry: ActionRegistry) => void; }; export declare const validationActions: { category: string; actions: ActionDefinition[]; register: (registry: ActionRegistry) => void; }; //# sourceMappingURL=action-registry.d.ts.map