import * as State from "./types/State"; import * as Actions from "./types/Actions"; import { State as PageState } from "./types/pageState"; import { CollectionTypeId } from "~/types/CollectionTypeId"; import { CustomMenuTypeId } from "./constants"; import * as ProjectSettings from "./../projectSettings/types/State"; import { InitState } from "../utils"; import { Cloud } from "~/types/Context"; import { Translator } from "~/locale/useTranslation"; export declare type Loaded = State.Ready | State.Custom | State.LoadCollectionItems | State.LoadCollectionItemsError; export declare const isLoaded: (v: import("../../../redux/types/state/Base").GenericState) => v is State.Ready | State.Custom | State.LoadCollectionItems | State.LoadCollectionItemsError; export declare type Confirmation = State.ConfirmationFromCustom | State.ConfirmationFromReady | State.ConfirmationFromLoadCollectionItems | State.ConfirmationFromLoadCollectionItemsError; export declare const isConfirmation: (v: import("../../../redux/types/state/Base").GenericState) => v is State.ConfirmationFromReady | State.ConfirmationFromCustom | State.ConfirmationFromLoadCollectionItems | State.ConfirmationFromLoadCollectionItemsError; export declare type LoadedOrConfirmation = Loaded | Confirmation; export declare const isLoadedOrConfirmation: (v: import("../../../redux/types/state/Base").GenericState) => v is State.Ready | State.Custom | State.LoadCollectionItems | State.LoadCollectionItemsError | State.ConfirmationFromReady | State.ConfirmationFromCustom | State.ConfirmationFromLoadCollectionItems | State.ConfirmationFromLoadCollectionItemsError; export declare type CollectiontypeIds = CollectionTypeId | CustomMenuTypeId; export declare type ReadyOrCustom = State.Ready | State.Custom; export declare const isReadyOrCustom: (v: import("../../../redux/types/state/Base").GenericState) => v is State.Ready | State.Custom; export declare const isReadyOrConfirmation: (v: import("../../../redux/types/state/Base").GenericState) => v is State.Ready | State.ConfirmationFromReady; export declare const isCustomOrConfirmation: (v: import("../../../redux/types/state/Base").GenericState) => v is State.Custom | State.ConfirmationFromCustom; export declare const isLoadCollectionItemsOrConfirmation: (v: import("../../../redux/types/state/Base").GenericState) => v is State.LoadCollectionItems | State.ConfirmationFromLoadCollectionItems; export declare const isLoadCollectionItemsErrorOrConfirmation: (v: import("../../../redux/types/state/Base").GenericState) => v is State.LoadCollectionItemsError | State.ConfirmationFromLoadCollectionItemsError; export declare const isDisabled: (s: LoadedOrConfirmation) => boolean; export declare const isEditedPageState: (state: PageState) => boolean; export declare const editedStateLogic: (s: Loaded, a: Actions.AcceptConfirmationPayload, c: Cloud, t: Translator) => LoadedOrConfirmation | State.Close | InitState; interface ProjectSettingsWithGoToEditorPage { page: ProjectSettings.WithGoToEditorState; } declare type WithGoToEditorReady = Omit & ProjectSettingsWithGoToEditorPage; declare type WithGoToEditorCustom = Omit & ProjectSettingsWithGoToEditorPage; declare type WithGoToEditorLoadCollectionItems = Omit & ProjectSettingsWithGoToEditorPage; declare type WithGoToEditorLoadCollectionItemsError = Omit & ProjectSettingsWithGoToEditorPage; export declare type WithGoToEditorState = WithGoToEditorReady | WithGoToEditorCustom | WithGoToEditorLoadCollectionItems | WithGoToEditorLoadCollectionItemsError; export {};