/** * Gets an action object, configured appropriately for a Check your answers component. * * @param {boolean} readonly Whether or not the component is readonly. * @param {object} page A configuration object for the page to link to. * @param {Function} onAction A function to invoke if the link is clicked. * * @returns An action object for a Check your answers row. * @description * `cya_link.href` and `cya_link.url` have been deprecated in favour of `cya_link.page` but this * method will convert both by taking the final part of the relative path: * - `href: '/bravo'` => `page: 'bravo'` */ declare const getCYAAction: (readonly: any, page: any, onAction: any) => { page: any; label: any; aria_suffix: any; onAction: any; } | null; export default getCYAAction;