export declare const SESSION_CATALOG_CONTRACT_VERSION = 7; export declare const SESSION_HYDRATION_CONTRACT_VERSION = 3; export declare const SESSION_RELATIONSHIP_CONTRACT_VERSION = 2; export declare const SESSION_EVIDENCE_CONTRACT_VERSION = 4; export declare const SESSION_USAGE_CONTRACT_VERSION = 3; /** * The provider ids this build knows, as a value. `Source` is derived from it * so the runtime checks below and the compile-time type cannot drift apart, * and it is the same list the MCP server's `SOURCE` enum publishes. */ export declare const SOURCES: readonly ["claude", "codex", "cursor", "grok", "opencode", "muse", "devin", "pi", "hermes", "omp", "antigravity", "copilot", "qwen-code", "kimi", "cline", "codebuddy", "cortex", "deepagents", "droid", "goose", "junie", "kilo", "mistral-vibe", "qoder", "vtcode", "grok-bot", "openclaw", "capy"]; export type Source = (typeof SOURCES)[number]; /** * The evidence kinds a provider adapter can produce, in the canonical order * the native layer reports them. Kept as a value so runtime validation and * the compile-time type cannot drift apart. */ export declare const EVIDENCE_KINDS: readonly ["history", "session_event", "tool_call", "file_edit", "relationship", "commit_link", "session_marker"]; export type EvidenceKind = (typeof EVIDENCE_KINDS)[number]; /** The kinds a session must cover for hydration to report `full`. */ export declare const FULL_SESSION_KINDS: readonly EvidenceKind[]; /** A source that can identify a session catalog entry: every source. */ export type CatalogSource = Source; export declare const CATALOG_SOURCES: readonly CatalogSource[]; /** Return whether an unknown value is a source recognized by this SDK build. */ export declare function isSource(value: unknown): value is Source; /** Return whether an unknown value can identify a session catalog entry. */ export declare function isCatalogSource(value: unknown): value is CatalogSource; export type SessionScope = 'local' | 'remote' | 'all'; export type SessionLocation = Exclude; export declare class RelayHistoryError extends Error { readonly code: string; constructor(message: string, code: string, options?: ErrorOptions); } export declare class UnsupportedPlatformError extends RelayHistoryError { } export declare class NativePackageMissingError extends RelayHistoryError { } export declare class NativeLoadError extends RelayHistoryError { } export declare class NativeContractMismatchError extends RelayHistoryError { } export declare class DatabaseOpenError extends RelayHistoryError { } export declare class InvalidArgumentError extends RelayHistoryError { } export declare class UnsupportedOperationError extends RelayHistoryError { } export declare class SessionNotFoundError extends RelayHistoryError { } export declare class SessionSourceUnavailableError extends RelayHistoryError { } export declare class SessionSourceMismatchError extends RelayHistoryError { } export declare class HydrationUnsupportedError extends RelayHistoryError { } export declare class HydrationFailedError extends RelayHistoryError { } export declare class ConnectorNotConfiguredError extends RelayHistoryError { } export declare class AuthenticationExpiredError extends RelayHistoryError { } export declare class PermissionDeniedError extends RelayHistoryError { } export declare class EvidencePartialError extends RelayHistoryError { } export declare class ConnectorFailureError extends RelayHistoryError { } export declare function defaultDbPath(): string; //# sourceMappingURL=sdk-common.d.ts.map