/** * Global-store cross-store hint helper. * * When a target/key is not found in the resolved (repo-local) store, this * helper safely peeks at the GLOBAL store's manifest (names only — never * decrypts values) and returns a suggestion string if the requested * target/key name is found there. * * Design constraints: * - Never decrypts secret values; reads only structural manifest names. * - Never throws; all failures return undefined (best-effort, graceful). * - Never fires when the resolved store IS already the global store. * - The global store root is overridable via `globalStoreRootOverride` so * tests can point this at a temp directory without touching HOME. */ export interface GlobalStoreHintOptions { /** * Override the global store root for tests (defaults to ~/.hush). */ globalStoreRootOverride?: string; } /** * Build a cross-store hint string if the missing target or key exists in the * global store (~/.hush), and the current resolved store is NOT the global store. * * Returns `undefined` when: * - the resolved store root IS the global store (no hint needed) * - the global store does not exist * - the global store manifest cannot be read * - the target/key is not found in the global store * * @param missingName The target name or key name that was not found. * @param kind 'target' or 'key' — used in the hint wording. * @param resolvedRoot The resolved store root for the current command. * @param options Optional overrides (test hook for globalStoreRootOverride). */ export declare function globalStoreHint(missingName: string, kind: 'target' | 'key', resolvedRoot: string, options?: GlobalStoreHintOptions): string | undefined; //# sourceMappingURL=global-store-hint.d.ts.map