/** * URL context for the redaction rule table: the character ranges covered by * the path section of absolute `http(s)` URLs. Path segments are document * identifiers (CMS row ids, file names, slugs), so the tier-2 entropy fallback * must not mistake them for credentials. Query strings and fragments are * deliberately excluded: signed URLs and OAuth callbacks carry their real * credentials there and stay fully covered. * @module dsh-sensitive-guard/redact/urls */ /** Half-open character range `[start, end)`. */ export type TextRange = readonly [start: number, end: number]; /** * Path ranges of every absolute `http(s)` URL in one text window, sorted and * non-overlapping and ordered by start offset. The leading `/` is excluded and * a URL without a path (`https://host`, `https://host/`, `https://host?q=1`) * contributes no range. */ export declare function findUrlPathRanges(text: string): TextRange[]; /** * Whether `[start, end)` is fully contained in one of the sorted, * non-overlapping ranges. A partial overlap is not containment: a match that * runs past a path boundary keeps its normal rule behaviour. */ export declare function containedInRanges(ranges: readonly TextRange[], start: number, end: number): boolean; //# sourceMappingURL=urls.d.ts.map