import { DialogConfig } from "../../dialog/Dialog.types.js"; import { BaseRecord } from "@refinedev/core"; import React, { ReactNode } from "react"; //#region src/components/shared/utils/renderFooter.d.ts interface FooterRenderConfig { /** CSS class name for the footer container */ className?: string; /** Dialog configuration (required for dialog contexts) */ dialogConfig?: DialogConfig; /** Footer configuration - can be false, ReactNode, or function */ footer?: ((environment: any) => ReactNode) | false | ReactNode; /** Form methods for form state */ formMethods?: any; /** Whether this is rendered in a dialog context */ isDialog?: boolean; /** Callback function to handle cancel/close actions */ onCancel?: () => void; /** Configuration object for UnifiedFooter */ unifiedFooterConfig?: any; } /** * Shared footer rendering utility that standardizes footer rendering * across dialogs and forms in the portal framework. * * This utility handles: * - Function-based footers with environment context * - Static footer content * - Disabled footers (footer: false) * - Default UnifiedFooter fallback * - Dialog vs standalone contexts * - Wizard/step form detection for dialogs */ declare function renderFooter(config: FooterRenderConfig): React.ReactNode; //#endregion export { FooterRenderConfig, renderFooter }; //# sourceMappingURL=renderFooter.d.ts.map