import type { DropboxAccessor } from '../../accessor/dropbox.ts'; import { PathSpec } from '../../types.ts'; /** * Use Dropbox file search to narrow grep/rg scopes to candidate files. * * Search results are compared against each scope on `path_lower` (Dropbox * paths are case-insensitive) and mapped back to mount paths from * `path_display`. Per-scope results are sorted component-wise so they line * up with the order a sorted readdir walk would visit, and each `rawPath` * is rebased onto the scope's as-typed spelling so output labels match a * walk's. * * Returns null whenever the narrowed set cannot be trusted as a superset * of what a full scan would read (API failure, or the 10,000-match search * ceiling), so the caller falls back to the full scan. */ export declare function narrowPaths(accessor: DropboxAccessor, query: string, paths: readonly PathSpec[]): Promise; //# sourceMappingURL=search.d.ts.map