import { type FormMetadata, type SubmitResponsePayload } from '@defra/forms-model';
import { type FormModel } from '~/src/server/plugins/engine/models/index.js';
import { type DetailItem } from '~/src/server/plugins/engine/models/types.js';
import { type FormContext } from '~/src/server/plugins/engine/types.js';
import { type FormRequestPayload } from '~/src/server/routes/types.js';
/**
 * Optional GOV.UK Notify service for consumers who want email notifications
 * Can be disabled by not providing notifyTemplateId in config
 * Can be overridden by providing a custom outputService in the services config
 */
export declare function submit(context: FormContext, request: FormRequestPayload, model: FormModel, emailAddress: string, items: DetailItem[], submitResponse: SubmitResponsePayload, formMetadata?: FormMetadata): Promise<void>;
