import type { HushProjectDiscoveryResult, HushProjectRuntimeAuthority, LegacyHushConfig } from '../types.js'; export declare function findConfigPath(root: string): string | null; export declare function isV3RepositoryRoot(root: string): boolean; export interface FindProjectRootOptions { /** * If true, only check `startDir` itself; do not walk upward into ancestor * directories. Used by `hush bootstrap --new-repo` to force creation of a * child-local repository even when a parent `.hush/` exists. */ ignoreAncestors?: boolean; /** * If true, stop walking upward at git repository boundaries (i.e. the first * directory that contains its own `.git/`). Prevents nested git repos from * silently inheriting a parent's `.hush/` repository. */ stopAtGitRoot?: boolean; } export declare function findProjectRoot(startDir: string, options?: FindProjectRootOptions): HushProjectDiscoveryResult | null; export declare function loadProjectRuntimeAuthority(root: string, options?: { keyIdentity?: string; }): HushProjectRuntimeAuthority; export declare function loadConfig(root: string): LegacyHushConfig; export declare function checkSchemaVersion(config: LegacyHushConfig): { needsMigration: boolean; from: number; to: number; }; export declare function validateConfig(config: LegacyHushConfig): string[]; //# sourceMappingURL=loader.d.ts.map