import React from "react"; import { SizeUnit } from "src/core-types"; export interface PersistenceLayoutProps { name: string; } declare type SaveFunc = (key: string, size: SizeUnit) => void; declare type GetFunc = (params: { key?: string; fallback: SizeUnit; }) => SizeUnit | undefined; export interface PersistentLayoutContext { save: SaveFunc; get: GetFunc; } export interface SavedLayout { [key: string]: SizeUnit; } declare const PersistentLayout: React.FC; export declare const usePersistentLayout: () => PersistentLayoutContext; export default PersistentLayout;