import { type SecretStore } from '../auth/credential-store.js'; import { type LedgerKeyProvider } from './keys.js'; import { type EffectLedger } from './ledger.js'; import type { CheckpointSink } from './checkpoint-sinks.js'; import type { EffectScope, EffectSubsystem } from './types.js'; import type { EffectVerifier, EffectVerifierRegistry } from './verifiers/index.js'; import type { TrackerVerifierOptions } from './verifiers/tracker.js'; export interface EffectKeyProviderConfig { /** `credential-store` (default): the host secret service. `file`: an explicit mode-0600 file fallback. */ type?: 'credential-store' | 'file'; service?: string; /** Defaults to `ledger///`. */ account?: string; /** Required for `file`. */ path?: string; } export interface EffectHostConfig { tenant?: string; project?: string; writer?: string; keyProvider?: EffectKeyProviderConfig; } /** Test and embedding seams. Production uses host configuration only. */ export interface EffectCliDeps { /** Replace the configured key store. `role` is `current` or `next` (the staged successor during rotation). */ keyStore?: (role: 'current' | 'next', account: string) => SecretStore; sink?: CheckpointSink; clock?: () => number; env?: NodeJS.ProcessEnv; /** * Extra verifiers registered after the built-ins. An extension whose kind is * a tracker kind replaces the configured tracker verifier of that kind. */ verifiers?: EffectVerifier[]; /** Overrides for the tracker verifiers (transport, clock, config and remotes). */ tracker?: Partial; lockTimeoutMs?: number; } export interface Session { projectDir: string; scope: EffectScope; config: EffectHostConfig; account: string; deps: EffectCliDeps; env: NodeJS.ProcessEnv; } export declare function keyStore(session: Session, role: 'current' | 'next'): SecretStore | null; export declare function keyProvider(session: Session): LedgerKeyProvider; export declare function describeKeyProvider(session: Session): Record; export declare function openLedger(session: Session, registry?: EffectVerifierRegistry): EffectLedger; /** Resolve the same host scope and key provider for CLI and qualification evidence. */ export declare function effectSession(projectDir: string, subsystem?: EffectSubsystem, deps?: EffectCliDeps): Promise; //# sourceMappingURL=host.d.ts.map