import { PrimaryKey } from 'fastapi-rtk/api-types'; import { SafeContextOptions } from 'fastapi-rtk/utils'; import { FormsContextValue, FormType } from './types'; /** * Custom hook to access the forms context. * * The `'delete'` form stores the raw primary key of the row to delete, so its context is typed * `FormsContextValue` (`item` / `getItem` / `setItem` operate on the key); the other * forms operate on a row object (`FormsContextValue`). * * @param type - The type of form context to access. Can be 'view', 'add', 'edit', or 'delete'. * @param options - Options for the context hook. * @returns The forms context object. */ export declare function useForms(type: 'delete', options?: SafeContextOptions): FormsContextValue; export declare function useForms(type: FormType, options?: SafeContextOptions): FormsContextValue;