/** * @file Fleet-convention config reader: a per-repo override (`.config/repo`) * layered over the cascaded fleet default (`.config/fleet`). A thin wrapper * over the generic `config/layers` reader that returns the named `{ fleet, * repo }` shape Socket callers use, plus the `{ fleet, repo }` array-merge * convenience. The generic, convention-agnostic primitives * (`readConfigLayers`, `mergeConfigArray`) live in `config/layers`. Lives in * the published lib because it is the only import root the * `.git-hooks/_shared` and `.claude/hooks/_shared` trees (which do not * cross-import) plus `.config/*` can all reach. */ export declare const FLEET_LAYER_DIRS: readonly string[]; export interface RepoConfigTiers { fleet: T | undefined; repo: T | undefined; } export interface ResolveRepoConfigOptions { repoRoot?: string | undefined; cwd?: string | undefined; } /** * Concatenate one array-valued key across the fleet + repo tiers. Fleet entries * first, then repo entries. Convenience over `mergeConfigArray` for the `{ * fleet, repo }` shape. * * @param tiers - The `{ fleet, repo }` from `resolveRepoConfig`. * @param key - The array-valued property to concatenate. * * @returns Fleet entries followed by repo entries; `[]` when neither is an * array. * * @unused No internal or Socket consumers. */ export declare function mergeRepoConfigArray, K extends keyof T>(tiers: RepoConfigTiers, key: K): Array ? E : never>; /** * Fleet-convention reader: a repo override (`.config/repo`) layered over the * cascaded fleet default (`.config/fleet`). A thin wrapper over * `readConfigLayers` that returns the named `{ fleet, repo }` shape callers * already use; either tier is `undefined` when absent or unparseable. * * @example * ;```typescript * const { fleet, repo } = resolveRepoConfig('vitest') * const nonIsolated = [ * ...(fleet?.nonIsolated ?? []), * ...(repo?.nonIsolated ?? []), * ] * ``` * * @param name - Base name of the config file (no directory, no `.json`). * @param options - `repoRoot` / `cwd` for path resolution. * * @returns `{ fleet, repo }` parsed tiers; either may be `undefined`. */ export declare function resolveRepoConfig(name: string, options?: ResolveRepoConfigOptions | undefined): RepoConfigTiers;