import { RecordPageProps, RecordPageType } from '../../templates/RecordPage/types'; import type { ApiPayloadOptions } from '../fetcher'; import type { ApiFnOrObject, BaseResource, PagePreprocessor, PathsConfig, StandardUIApi } from '../types'; type RecordPageBaseProps = { /** * 現在のモード 詳細 | 作成 | 編集 */ page: RecordPageType; /** * このページで扱うレコードのID */ recordId?: string | number; apis?: { resources: ApiFnOrObject<{ create?: StandardUIApi, ResourcesCreateResponse, ResourcesShowRecord>; show: StandardUIApi; update?: StandardUIApi, ResourcesUpdateResponse, ResourcesShowRecord>; destroy?: StandardUIApi; }>; }; preprocessor?: PagePreprocessor; errorResponseToJSON?: (response: Response) => Promise; apiPayloadOptions?: ApiPayloadOptions; pathsConfig?: PathsConfig | ((resource: ResourcesShowRecord) => PathsConfig); }; /** * DetailPage, NewPage, EditPage を同じPropsで利用できるようにまとめたコンポーネント * @deprecated 今後積極的な改修は行いません。新規に使用しないでください! */ export declare const RecordPage: (recordPageProps: RecordPageBaseProps & RecordPageProps) => JSX.Element; export {};