/** * Resolve `SN_SDK_CREDENTIALS_DIR` (when non-empty) to an absolute path once * against the server's launch directory. Returns `undefined` when unset or * empty (matching the SDK CLI's `process.env['SN_SDK_CREDENTIALS_DIR'] || ...` * default to `~/.now-sdk`). */ export declare function resolveCredentialsDir(env?: Record, baseDir?: string): string | undefined; /** * Resolve the effective credential-store directory the SDK CLI uses in this * server's environment: the resolved `SN_SDK_CREDENTIALS_DIR` when configured, * else the SDK default (`~/.now-sdk`). */ export declare function resolveEffectiveCredentialsDir(env?: Record, baseDir?: string, homeDir?: string): string; /** * Resolve a credential store path reported by the SDK CLI to an absolute path. * On Windows a rooted path such as `\profiles` still needs the launch drive. */ export declare function resolveSdkStorePath(storePath: string, baseDir?: string): string; /** * Strip the SDK CLI's destructive deletion/reset imperatives from recognized * credential-store error messages and normalize any relative store path to an * absolute path. Pure text rewrite; callers handling machine-mode JSON output * should use {@link recoverCredentialStoreFailure} so JSON escaping stays valid. */ export declare function sanitizeCredentialStoreMessage(text: string, baseDir?: string): string; /** * Strip known SDK CLI logger/command/debug-inspect prefixes from a failure line * so credential-store classification and path extraction work uniformly across * all SDK commands and `--debug` mode without matching arbitrary user text. */ export declare function normalizeSdkErrorPrefix(text: string): string; /** True for an SDK credential-store diagnostic, before any instance request. */ export declare function isCredentialStoreFailure(message: string): boolean; /** * Return safe recovery guidance when `failure` matches a known SDK v4.14.0+ * credential-store error, or `undefined` when it is not a recognized store error. */ export declare function credentialStoreRecoveryGuidance(failure: string, addCommand?: string, baseDir?: string): string | undefined; /** Preserve application output, including exec's errors array. Only the SDK's own * credential failures get new recovery instructions. In machine mode rewrite just * the envelope's error.message so diagnostic text cannot change other JSON fields. */ export declare function recoverCredentialStoreFailure(output: string, message: string | undefined, outputTruncated?: boolean): { output: string; message?: string; }; //# sourceMappingURL=credentialStore.d.ts.map