export interface NormalizedScopePrefix { exact: string; descendant: string; } /** Normalize one scope prefix for both in-memory and LanceDB matching. */ export declare function normalizeScopePrefix(prefix: string): NormalizedScopePrefix; /** * True when `path` equals `prefix` or descends from it, with a separator * boundary so `/foo/bar` does not match `/foo/barista`. Trailing separators on * `prefix` are normalized; `path` is compared verbatim, matching the SQL * contract in `buildPrefixPredicate`. */ export declare function isUnderOrEqual(path: string, prefix: string): boolean; /** * True when `path` is under-or-equal any prefix in `prefixes` (union). Empty or * undefined `prefixes` semantics are the caller's concern; an empty list yields * false (membership against no prefixes). */ export declare function matchesAnyScope(path: string, prefixes: string[]): boolean; /** * The prefixes in `scope` that are not absolute paths. Such a prefix matches * nothing under the exact-or-descendant contract, so both list surfaces warn * while keeping that "matches nothing" result. */ export declare function nonAbsolutePrefixes(scope: string[]): string[]; /** * Directory-visit predicate for the scoped walk, shared by both walkers. Visit * `dir` when there is no scope, when it is in-scope, or when it is an ancestor * of a prefix and must be descended to reach the scoped subtree. */ export declare function shouldVisitDir(dir: string, scope?: string[]): boolean; /** * File-collect predicate for the scoped BFS walk, shared by both walkers. * Collect `path` when there is no scope, or when `path` is in-scope. An absent * or empty `scope` collects every supported file (collection unchanged). */ export declare function isInScope(path: string, scope?: string[]): boolean; //# sourceMappingURL=scope-match.d.ts.map