import { type FormModel } from '../../../../../server/plugins/engine/models/FormModel.js';
import { type PageControllerClass } from '../../../../../server/plugins/engine/pageControllers/helpers/pages.js';
import { type AnyFormRequest, type FormContext } from '../../../../../server/plugins/engine/types.js';
import { type FormQuery } from '../../../../../server/routes/types.js';
export declare function stripParam(query: FormQuery, paramToRemove: string): FormQuery | undefined;
/**
 * Any hidden parameters defined in the FormDefinition may be pre-filled by URL parameter values.
 * Other parameters are ignored for security reasons.
 * @param request
 * @param page
 */
export declare function prefillStateFromQueryParameters(request: AnyFormRequest, page: PageControllerClass): Promise<boolean>;
/**
 * Checks whether the save-and-exit finished on a repeater with partial state
 * @param context - the form context
 */
export declare function checkSaveAndExitRepeater(context: FormContext, model: FormModel): string | undefined;
/**
 * Copies any potentially invalid state into the payload, and removes those values from state
 * NOTE - this method has a side-effect on 'context.state' and 'context.payload'
 * @param request - the form request
 * @param context - the form context
 */
export declare function copyNotYetValidatedState(request: AnyFormRequest, context: FormContext): Promise<void>;
