/** Case-sensitive alphabet used only for generated public codes. */ export declare const SLUG_ALPHABET = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; /** Generated codes start short and grow only after repeated collisions. */ export declare const DEFAULT_SLUG_LENGTH = 3; export declare const MAX_GENERATED_SLUG_LENGTH = 96; export declare const COLLISION_ATTEMPTS_PER_LENGTH = 8; export declare const SYSTEM_RESERVED_PUBLIC_SLUGS: Set; export type SlugTokenFactory = (length: number) => string; export declare function randomToken(length?: number): string; /** * Return the generated-code length for a zero-based collision attempt. * Eight atomic insert collisions at one size move allocation to the next size. */ export declare function adaptiveSlugLength(attempt: number, requestedLength?: number): number; export declare function normalizeGeneratedSlugLength(length?: number): number; /** Friendly aliases and generated codes share one root-path slug syntax. */ export declare function normalizeSlug(slug: string, additionalReserved?: Iterable): string;