import { ComponentType, Dispatch, ReactNode, SetStateAction } from 'react'; import { useAppPanelInternal } from './AppPanelsContext'; export declare const SettingsIdSymbol: unique symbol; export declare const defaultWidth = 334; export declare const settingsWidth = 296; export declare const SettingsPinnedConfigKey: 'CorvaUI.internal.SettingsPinned'; export declare const PanelsConfigKey: 'CorvaUI.internal.PanelsConfig'; export type PanelConfig = { component: ComponentType; width?: number; isPinnable?: boolean; isInitiallyPinned?: boolean; isExpandable?: boolean; placement?: 'start' | 'end'; }; export type AppPanelConfigInternal = Record; export type AppPanelConfig = Record; export type InternalPanelConfig = Omit & { id: string | symbol; width: number; isOpen: boolean; isAnimated: boolean; opener?: HTMLElement; isExpanded: boolean; isPinned: boolean; additionalControls?: ReactNode; placement: Required['placement']; }; export type State = Record; export declare const useSaveStateToSettings: (state: State) => void; export declare const useInternalState: (panels: AppPanelConfigInternal) => { internalState: State; setInternalState: Dispatch>; }; export declare const getPublicState: ({ isExpanded, isExpandable, onExpandClick, onPinClick, isPinned, isInitiallyPinned, width, isOpen, open, close, toggle, isToggleActive, isPinnable, additionalControls, }: ReturnType) => { isExpanded: boolean; isExpandable: boolean; onExpandClick: () => void; onPinClick: () => void; isPinned: boolean; isInitiallyPinned: boolean; width: number; isOpen: boolean; open: (e?: import("react").MouseEvent) => void; close: () => void; toggle: import("react").MouseEventHandler; isToggleActive: boolean; isPinnable: boolean; additionalControls: ReactNode; }; //# sourceMappingURL=utils.d.ts.map