import { type Event, type IIDGen, type INotify, type Listener } from "@thi.ng/api"; import { type IDGenEventType } from "./api.js"; /** * Wrapped ID generator for creating string-based IDs derived from a backing ID gen. */ export declare class PrefixedID implements IIDGen, INotify { readonly prefix: string; readonly gen: IIDGen; constructor(prefix: string, gen: IIDGen); next(): string; free(id: string): boolean; addListener(id: IDGenEventType, fn: Listener, scope?: any): boolean; removeListener(id: IDGenEventType, fn: Listener, scope?: any): boolean; notify(event: Event): boolean; } /** * Syntax sugar for {@link PrefixedID} constructor. * * @param prefix * @param gen */ export declare const prefixed: (prefix: string, gen: IIDGen) => PrefixedID; //# sourceMappingURL=prefixed.d.ts.map