/** * Dedupes slugs across one document parse: the first occurrence of a base slug keeps it bare, each * repeat appends `-1`, `-2`, ... incrementing until an unused candidate is found (so a real heading * that happens to already read e.g. "Overview 1" is never silently collided with). Each base keeps * a monotonic next-suffix cursor, so a rejected candidate is inspected at most once for that base * and long duplicate-heading runs stay linear. Scoped per instance -- create one per parse/render * pass, never share one across documents. */ export declare class Slugger{private readonly used; /** Next suffix worth probing for each duplicated base. Advancing this cursor means a candidate * rejected once is never revisited by a later duplicate, keeping one parse's aggregate suffix * membership work linear in the number of admitted headings. */ private readonly nextSuffix;slug(text:string):string;}