export type Validator = { id: string; func: (input: T) => boolean | Promise; errorMessage: string; }; export declare class ValidatorManager { private validators; constructor(initial?: Validator[]); add(validator: Validator): void; validate(input: T): Promise<{ valid: boolean; errors: string[]; }>; validateSync(input: T): { valid: boolean; errors: string[]; }; getAllIds(): string[]; getValidator(id: string): Validator | undefined; remove(id: string): void; clear(): void; }