import type { Core } from '@strapi/strapi'; import type { FormHookRequest, SubmissionLedger, SubmissionReceipt, SubmissionValue } from '../config/forms'; import type { Delivery } from './notification'; declare const submission: ({ strapi }: { strapi: Core.Strapi; }) => { list(query?: Record): Promise<{ data: { documentId: unknown; form: unknown; status: unknown; createdAt: unknown; updatedAt: unknown; consentAt: unknown; consentVersion: unknown; targetUid: unknown; targetDocumentId: {} | null; deliveries: { channel: unknown; status: unknown; attempts: unknown; lastError: {} | null; sentAt: {} | null; }[]; }[]; meta: { pagination: { page: number; pageSize: number; total: number; pageCount: number; }; }; }>; filterOptions(): Promise<{ slug: string; name: string; }[]>; get(documentId: string, context?: { userAbility: unknown; }): Promise<{ documentId: unknown; form: unknown; status: unknown; createdAt: unknown; updatedAt: unknown; consentAt: unknown; consentVersion: unknown; targetUid: unknown; targetDocumentId: {} | null; deliveries: { channel: unknown; status: unknown; attempts: unknown; lastError: {} | null; sentAt: {} | null; }[]; } | { currentRecord: import("./submission-detail").CurrentSubmissionRecord; documentId: unknown; form: unknown; status: unknown; createdAt: unknown; updatedAt: unknown; consentAt: unknown; consentVersion: unknown; targetUid: unknown; targetDocumentId: {} | null; deliveries: { channel: unknown; status: unknown; attempts: unknown; lastError: {} | null; sentAt: {} | null; }[]; }>; updateStatus(documentId: string, input: unknown): Promise<{ documentId: unknown; form: unknown; status: unknown; createdAt: unknown; updatedAt: unknown; consentAt: unknown; consentVersion: unknown; targetUid: unknown; targetDocumentId: {} | null; deliveries: { channel: unknown; status: unknown; attempts: unknown; lastError: {} | null; sentAt: {} | null; }[]; }>; /** Owns its transaction; call outside an ambient Strapi transaction so a * uniqueness failure can roll back before recovery and hooks run postcommit. */ submit(slug: string, input: unknown, options?: { request?: FormHookRequest; auth?: unknown; wrappedInput?: boolean; }): Promise; redeliver(documentId: string): Promise; /** Resolve receipts by a configured field value (for example a hidden * session id) without consumers reading the ledger table. Ledgers are * grouped by their stored target UID so a form whose storage target changed * still finds older receipts; targets whose schema lacks the field are skipped. */ findByField(slug: string, name: string, value: SubmissionValue): Promise; }; export default submission; //# sourceMappingURL=submission.d.ts.map