import { PageContentInstance } from "../../PageContent";
import PageContainer from "./page-container";

export type Hooks = {
  pageSearchHook?: (...rest: any[]) => any;
  pageModalHook?: (...rest: any[]) => any;
};

export type Events = {
  content?: {
    handleResult?: (data: any) => any;
    result?: (data: any) => any;
    preview?: (row: any) => any;
    update?: (row: any) => any;
    create?: () => any;
  };
};

export type PageContainerInstance = InstanceType<typeof PageContainer> & {
  content: PageContentInstance;
};
