import type { Offering } from '@variance-authority/package/help'; /** * The directories a workspace's scan reads, and the root they are named from. * * A workspace whose members all sit inside its root is the whole of that root. * One whose member list reaches beside it — a product of a monorepo listing * packages in the checkout's other directories — is its root and each member * the list names, named from the top of the checkout: what the list names is * what the workspace can import and work with. A member inside another named * directory is already read with it, so it is not named twice. * * Every path is compared in one spelling, resolved. Git names its top level * resolved and the offerings are resolved, so a root spelled through a link — * a checkout under macOS's `/var`, which is `/private/var` — would otherwise * read as crossing itself and scan no directory at all. The root comes back * resolved for the same reason: every path the reading derives is taken * relative to it, from offerings that are named resolved. */ export declare function scanScope(root: string, offerings: readonly Offering[]): { readonly root: string; readonly dirs: readonly string[]; }; /** * The source index a workspace's reading keeps, beside the one at `index` that * its root keeps. * * A scope of the whole root is that root's own index. A scope that reaches * beside the root is named from another root and holds other files, so it is * an index of its own, written next to the root's: the root's records are * spelled from the root and must never be overwritten by the workspace's. */ export declare function scopeSourceIndexPath(index: string, dirs: readonly string[]): string; /** Whether a scan of `dirs` is the whole of its root, and so kept in the root's own index. */ export declare function coversWhole(dirs: readonly string[]): boolean; //# sourceMappingURL=scan-scope.d.ts.map