import { type ActionLedgerRequestContextValues, type ExecuteAdmittedCreatedTargetCommandInput, type ExecuteCreatedTargetCommandHandlers, type ExecuteCreatedTargetCommandResult } from "@voyant-travel/action-ledger"; import { type ToolHandlerActionPolicyContext } from "@voyant-travel/tools"; import type { PostgresJsDatabase } from "drizzle-orm/postgres-js"; import type { QuotesCreatedTargetPolicy } from "./created-target-policy.js"; type QuoteRow = { id: string; }; type QuotesCreatedCommandExecutor = (input: ExecuteAdmittedCreatedTargetCommandInput, handlers: ExecuteCreatedTargetCommandHandlers) => Promise>; /** * Run a quote creation as a ledgered created-target command, so an exact retry * claims the original quote rather than opening a duplicate. * * `replay` re-reads the claimed quote rather than returning a bare reference: * the Tool's output schema is the full quote, and a caller that retried should * still get a quote back rather than a stub it has to fetch again. */ export declare function executeQuotesCreate(db: PostgresJsDatabase, context: ActionLedgerRequestContextValues, policy: QuotesCreatedTargetPolicy, commandInput: unknown, admitted: ToolHandlerActionPolicyContext, create: (tx: PostgresJsDatabase) => Promise, read: (tx: PostgresJsDatabase, id: string) => Promise, executor?: QuotesCreatedCommandExecutor): Promise>; export {};