import { SecretResolver } from "@graphorin/core/contracts"; //#region src/secrets/resolvers/keyring.d.ts /** * Service prefix used for every keyring entry written by the framework. * Picking a stable prefix makes it possible for users to inspect the * OS keychain (Keychain Access on macOS, Credential Manager on * Windows, `seahorse` / `gnome-keyring` on Linux) and easily filter * Graphorin-owned credentials. * * @stable */ declare const KEYRING_DEFAULT_SERVICE = "graphorin"; /** * Constructor shape of `@napi-rs/keyring`'s `Entry` - swappable via * `_setKeyringEntryCtorForTesting`. * * @stable */ type KeyringEntryCtor = new (service: string, account: string) => { getPassword(): string | null; setPassword(value: string): void; deletePassword(): boolean; }; /** * Test-only override that lets fixtures inject a stub keyring instead * of taking a hard dependency on `@napi-rs/keyring` in the unit tests. * * @experimental */ declare function _setKeyringEntryCtorForTesting(ctor: KeyringEntryCtor | null): void; /** * Resolver for the `keyring:` scheme. Reads the OS keychain via * `@napi-rs/keyring`. The path component is the account name; an * optional `?service=...` overrides the default service prefix. * * @stable */ declare const keyringResolver: SecretResolver; //#endregion export { KEYRING_DEFAULT_SERVICE, KeyringEntryCtor, _setKeyringEntryCtorForTesting, keyringResolver }; //# sourceMappingURL=keyring.d.ts.map