import type { Visibility } from "../sharing/schema.js"; import type { HistoryActorKind, ResourceHistoryScope, ResourceVersion } from "./types.js"; export interface InsertResourceVersionInput { resourceType: string; resourceId: string; createdBy?: string | null; actorKind?: HistoryActorKind; ownerEmail?: string | null; orgId?: string | null; visibility?: Visibility | null; title?: string | null; summary?: string | null; snapshot: unknown; metadata?: Record | null; } export interface QueryResourceVersionsInput { resourceType: string; resourceId: string; scope: ResourceHistoryScope; bypassScope?: boolean; limit?: number; offset?: number; } export declare function ensureResourceVersionsTable(): Promise; export declare function insertResourceVersion(input: InsertResourceVersionInput): Promise; export declare function queryResourceVersions(input: QueryResourceVersionsInput): Promise; export declare function getResourceVersionById(id: string, scope: ResourceHistoryScope, options?: { bypassScope?: boolean; }): Promise; export declare function getResourceVersionByNumber(resourceType: string, resourceId: string, versionNumber: number, scope: ResourceHistoryScope, options?: { bypassScope?: boolean; }): Promise; export declare function __resetHistoryInitForTests(): void; //# sourceMappingURL=store.d.ts.map