import type { ContractStreamEvent, EndpointAccessLeaseClaim, EndpointAccessUsageCounterReservation, GreenlightConsumption, IdempotencyLedgerIndexEntry, ProtocolCommit, ProtectedSurfaceOperationClaimIndexEntry, ReceiptMutationAttemptIndexEntry, StoredProtocolRecord } from "../../protocol/store/port"; import type { AuthorityCommitRecordReference, AuthorityPointerGuard, AuthorityPointerIdentity, AuthorityPointerMutation, AuthoritySourceScope, NormalizedAuthorityProjectionIntent, NormalizedAuthoritySourceMutation, NormalizedAuthoritySourceRecord } from "../../protocol/store/authority-source"; type ProtocolCommitStatementOptions = Pick & Readonly<{ absentOrSameObservedPayloadJson?: readonly (string | null)[]; }>; export declare class D1ProtocolStatements { private readonly db; constructor(db: D1Database); authorityMutationReadbackStatement(mutation: NormalizedAuthoritySourceMutation): D1PreparedStatement; authoritySourceClockObservationStatement(mutation?: NormalizedAuthoritySourceMutation): D1PreparedStatement; authoritySourceClockStateReadStatement(): D1PreparedStatement; authoritySourceTemporalIntegrityStatement(): D1PreparedStatement; authoritySourceTemporalRealmBarrierReadStatement(): D1PreparedStatement; authoritySourceTemporalRealmBarrierArmStatement(mutation: NormalizedAuthoritySourceMutation): D1PreparedStatement; authoritySourceTemporalRealmSerializationReleaseStatement(mutation: NormalizedAuthoritySourceMutation): D1PreparedStatement; authoritySourceAttemptBarrierArmStatement(mutation: NormalizedAuthoritySourceMutation): D1PreparedStatement; authoritySourceAttemptBarrierReadStatement(mutation: NormalizedAuthoritySourceMutation): D1PreparedStatement; authoritySourceAttemptBarrierProvenNotCommittedStatement(mutation: NormalizedAuthoritySourceMutation): D1PreparedStatement; authorityCurrentPointersStatement(scope: AuthoritySourceScope, pointers: readonly AuthorityPointerIdentity[]): D1PreparedStatement; authorityCurrentRecordsStatement(scope: AuthoritySourceScope, pointers: readonly AuthorityPointerIdentity[]): D1PreparedStatement; protocolCommitStatements(records: StoredProtocolRecord[], events: ContractStreamEvent[], options?: ProtocolCommitStatementOptions): D1PreparedStatement[]; recordReplacementStatements(record: StoredProtocolRecord, conflictMode?: "replace" | "absent_or_same", observedPayloadJson?: string | null): D1PreparedStatement[]; recordAbsentStatements(record: StoredProtocolRecord): D1PreparedStatement[]; greenlightConsumptionStatement(consumption: GreenlightConsumption): D1PreparedStatement; protectedSurfaceOperationClaimIndexStatement(entry: ProtectedSurfaceOperationClaimIndexEntry, mode: "insert" | "replace"): D1PreparedStatement; idempotencyLedgerIndexStatement(entry: IdempotencyLedgerIndexEntry, mode: "insert" | "replace"): D1PreparedStatement; receiptMutationAttemptIndexStatement(entry: ReceiptMutationAttemptIndexEntry): D1PreparedStatement; endpointAccessLeaseClaimStatement(claim: EndpointAccessLeaseClaim): D1PreparedStatement; endpointAccessUsageCounterCasStatement(reservation: EndpointAccessUsageCounterReservation): D1PreparedStatement; authoritySourceRecordStatement(mutation: NormalizedAuthoritySourceMutation, record: NormalizedAuthoritySourceRecord): D1PreparedStatement; authorityCommitRecordRefStatement(mutation: NormalizedAuthoritySourceMutation, recordRef: AuthorityCommitRecordReference): D1PreparedStatement; authoritySourceRecordPredecessorAssertionStatement(mutation: NormalizedAuthoritySourceMutation, record: NormalizedAuthoritySourceRecord): D1PreparedStatement; authorityPointerGenesisStatement(mutation: NormalizedAuthoritySourceMutation, pointerMutation: AuthorityPointerMutation): D1PreparedStatement; authorityPointerExactUpdateStatement(mutation: NormalizedAuthoritySourceMutation, pointerMutation: AuthorityPointerMutation): D1PreparedStatement; authorityPointerTransitionStatement(mutation: NormalizedAuthoritySourceMutation, pointerMutation: AuthorityPointerMutation): D1PreparedStatement; authorityProjectionIntentStatement(mutation: NormalizedAuthoritySourceMutation, projectionIntent: NormalizedAuthorityProjectionIntent): D1PreparedStatement; authorityPointerGuardStatement(mutation: NormalizedAuthoritySourceMutation, pointerGuard: AuthorityPointerGuard): D1PreparedStatement; authorityCommitTemporalEvidenceStatement(mutation: NormalizedAuthoritySourceMutation): D1PreparedStatement; authoritySourceTemporalRealmBarrierReleaseStatement(mutation: NormalizedAuthoritySourceMutation): D1PreparedStatement; authoritySourceCommitStatement(mutation: NormalizedAuthoritySourceMutation): D1PreparedStatement; recordStatement(record: StoredProtocolRecord, conflictMode?: "replace" | "absent_or_same", observedPayloadJson?: string | null): D1PreparedStatement; recordAbsentOrSameStatement(record: StoredProtocolRecord, observedPayloadJson: string | null): D1PreparedStatement; recordIfAbsentStatement(record: StoredProtocolRecord): D1PreparedStatement; private recordActionContractRefDeleteStatement; private recordActionContractRefStatements; private streamEventStatement; private greenlightIssuanceClaimStatement; private recoveryTerminalClaimStatement; private isolationStateIndexStatement; private protectedPathPostureIndexStatement; private protectedSurfaceOperationClaimReleaseStatement; } export {};