import { FolderType, StoreContextType, Template, TemplateData, TemplateMetaData, TreeFolder, TreeNode } from './types';
type AnyStore = StoreContextType<any>;
export declare const StoreContext: import("react").Context<AnyStore>;
export declare const suggestName: (unsanitizedName?: string, nodesList?: TreeNode[]) => string | undefined;
export declare const isFolder: (node: TreeNode) => node is TreeFolder;
export declare const isTemplate: (node: TreeNode) => node is Template;
export declare const getFolderId: (type: FolderType, nameOrEntityId?: string | number) => string;
export declare const isPresetOverride: (template?: Template) => boolean | undefined;
export declare const isOwnTemplate: (template?: Template) => boolean;
export declare const getTemplateFolder: (template?: Template) => string | undefined;
export declare const isTemplateInFolder: (template?: Template) => boolean;
export declare const getMetadataForCopyOrExport: (template: Template) => {
    icon: string | undefined;
    iconColor: string | undefined;
};
type TemplateExportData = {
    version: 1;
    metadata: Pick<TemplateMetaData, 'icon' | 'iconColor'>;
} & Pick<Template, 'name' | 'settings'>;
export declare const getTemplateExportData: (template: Template) => TemplateExportData;
export declare const parseTemplateImportData: <T extends TemplateData>(data: string) => Pick<Template<T>, "name" | "settings" | "metadata">;
export declare const loadTextFile: ({ extensions, maxSizeKb, }?: {
    extensions?: string[];
    maxSizeKb?: number;
}) => Promise<string>;
export {};
//# sourceMappingURL=utils.d.ts.map