/**
 * TypeScript port of scripts/lib/project-key.mjs.
 *
 * Both the MCP-server side (this module) and the hook scripts must agree on
 * how a cwd maps to a project key — otherwise writes and reads fall under
 * different scopes and recall silently misses (issue #42).
 *
 * Resolution order:
 *   1. SHIELDCORTEX_PROJECT_KEY env override
 *   2. CLAUDE_MEMORY_PROJECT env override (legacy alias for SC env var)
 *   3. ~/.shieldcortex/config.json projectKey
 *   4. ~/.shieldcortex/config.json projectAliases[basename]
 *   5. Git origin owner-repo (walk up from cwd)
 *   6. Cwd basename (legacy behaviour), skipping noise directories
 */
export declare function basenameFromCwd(path: string | null | undefined): string | null;
declare function parseOriginUrl(url: string): {
    owner: string;
    repo: string;
} | null;
declare function readOriginFromGitConfig(gitPath: string): {
    owner: string;
    repo: string;
} | null;
/**
 * Derive the project key for a given working directory. Mirrors
 * scripts/lib/project-key.mjs::deriveProjectKey so MCP-server-side and
 * hook-side keys agree.
 */
export declare function deriveProjectKey(cwd: string | null | undefined): string | null;
export declare const __internal: {
    parseOriginUrl: typeof parseOriginUrl;
    basenameFromCwd: typeof basenameFromCwd;
    readOriginFromGitConfig: typeof readOriginFromGitConfig;
};
export {};
