import { CustomViewType } from '../../areas/ListControl'; import { IndexResourceContainerChildrenProps } from '../../resourceContainers/IndexPage'; import type { IndexPageProps } from '../../templates/IndexPage/types'; import type { ApiPayloadOptions } from '../fetcher'; import type { ApiFnOrObject, BaseResource, PagePreprocessor, PathsConfig, StandardUIApi } from '../types'; type IndexPageBaseProps, ResourcesIndexResponse, ResourcesIndexRecord extends BaseResource[], ResourcesShowParams, ResourcesShowResponse, ResourcesCreateResponse, ResourcesUpdateResponse, ResourcesDestroyParams, ResourcesDestroyResponse, ViewsIndexParams, ViewsIndexResponse, ViewsIndexRecord extends CustomViewType[], ViewsShowResponse> = { apis?: { resources: ApiFnOrObject<{ index: StandardUIApi; create?: StandardUIApi, ResourcesCreateResponse, ResourcesIndexRecord[number]>; show?: StandardUIApi; update?: StandardUIApi, ResourcesUpdateResponse, ResourcesIndexRecord[number]>; destroy?: StandardUIApi; }>; views?: ApiFnOrObject<{ index: StandardUIApi; create?: StandardUIApi, ViewsShowResponse, ViewsIndexRecord[number]>; update?: StandardUIApi, ViewsShowResponse, ViewsIndexRecord[number]>; destroy?: StandardUIApi, never, never>; }>; bulkActions?: { [key: string]: ApiFnOrObject>; }; }; preprocessor?: PagePreprocessor; errorResponseToJSON?: (response: Response) => Promise; apiPayloadOptions?: ApiPayloadOptions; pathsConfig?: PathsConfig | ((resource: ResourcesIndexRecord[number]) => PathsConfig); }; /** * 一覧画面 * @deprecated 今後積極的な改修は行いません。新規に使用しないでください! */ export declare const IndexPage: , ResourcesIndexResponse, ResourcesIndexRecord extends BaseResource[], ResourcesShowParams, ResourcesShowResponse, ResourcesCreateResponse, ResourcesUpdateResponse, ResourcesDestroyParams, ResourcesDestroyResponse, ViewsIndexParams, ViewsIndexResponse, ViewsIndexRecord extends CustomViewType[], ViewsShowResponse>(indexPageProps: IndexPageBaseProps & IndexPageProps) => JSX.Element; export declare const IndexPageInner: , ResourcesIndexResponse, ResourcesIndexRecord extends BaseResource[], ResourcesShowParams, ResourcesShowResponse, ResourcesCreateResponse, ResourcesUpdateResponse, ResourcesDestroyParams, ResourcesDestroyResponse, ViewsIndexParams, ViewsIndexResponse, ViewsIndexRecord extends CustomViewType[], ViewsShowResponse>({ resourceContainerChildrenProps, indexPageProps, }: { resourceContainerChildrenProps: IndexResourceContainerChildrenProps; indexPageProps: IndexPageProps & IndexPageBaseProps; }) => JSX.Element; export {};