import type { PainterModule } from "../painter/painter"; import { z } from "zod/v4"; export declare function sanitizeKamaitachiErrorMessage(msg: string, payload: string): string; /** * Map every item with an asynchronous function, running at most `concurrency` calls at the same time. * Results keep the order of the items. */ export declare function mapWithConcurrency(items: readonly T[], concurrency: number, fn: (item: T) => Promise): Promise; export type ExtendParameters unknown, T extends unknown[]> = (...args: [...Parameters, ...T]) => ReturnType; export type ReplaceReturnType unknown, R> = (...args: Parameters) => R; declare const genericPainterModuleSchema: z.ZodObject<{ type: z.ZodLiteral; }, z.core.$strip>; export type GenericPainterModule = { SCHEMA: S; } & (abstract new (...args: any[]) => T); export type SchemaOfModuleTuple = { [K in keyof T]: T[K]["SCHEMA"]; }; export type ModuleObjectFromClassArray = { [K in T[number] as z.infer["type"]]: InstanceType; }; export {};