import { Size, Options } from './types.js'; /** * A chainable builder that wraps generated word lists. */ export declare class Builder implements Iterable { #private; constructor(size?: Size, options?: Options, onGenerate?: (words: string[]) => void); /** * Returns the number of words. */ get length(): number; /** * Retrieves a specific word by index without array bracket notation. */ get(index: number): string | undefined; /** * Ignores size limits and generates mixed 2, 3, and 4-letter words. */ mix(): this; /** * Sets the number of words to return. */ results(number: number): this; /** * Enforces a syllable pattern (case-insensitive). */ pattern(patternString: string): this; /** * Freezes the current state to prevent further chained modifications. */ lock(): this; /** * Returns a standard array copy of the generated words. */ toArray(): string[]; /** * Maps over the generated words array. */ map(callbackfn: (value: string, index: number, array: string[]) => U): U[]; [Symbol.iterator](): Iterator; } //# sourceMappingURL=builder.d.ts.map