import { CollectionTypeWithSubitemSlug } from "./types/CollectionType"; import { CollectionTypeId } from "~/types/CollectionTypeId"; import { State as PageState } from "./types/pageState"; import * as CollectionTypeEditState from "../collectionTypes/edit/types/State"; import * as CollectionTypeEditBannerState from "../collectionTypes/edit/banner/types/State"; import * as CollectionItemsState from "../collectionItem/types/State"; import * as CollectionItemsListState from "../collectionItem/items/types/State"; import * as StoryBannerState from "../collectionItem/items/pages/StoryBanner/types/State"; import * as PopupBannerState from "../collectionItem/items/pages/PopupBanner/types/State"; import * as Actions from "./types/Actions"; import * as State from "./types/State"; import * as ProjectSettingsState from "../projectSettings/types/State"; import * as CustomersState from "../customers/types/State"; import * as EcwidShopIframeState from "./ecwidShop/IframeState/types/State"; import { Cloud } from "~/types/Context"; import { InitState } from "../utils"; import { Slug } from "~/types/Slug"; import { Translator } from "~/locale/useTranslation"; import * as ShopModule from "~/types/Modules/Shop"; import * as EcwidShopBannerState from "./ecwidShop/banner/types/State"; import { BannerShopTypes } from "~/pages/project/assets/ActiveAssets/Types"; import * as EcwidUtils from "./ecwidShop/utils"; import { Path, Suffix } from "./ecwidShop/IframeState/types/types"; import * as Project from "../types/State"; export declare const isVideo: (v: import("../../../redux/types/state/Base").GenericState) => v is State.LoadingVideo | State.ReadyVideo; export declare const isReadyOrVideo: (v: import("../../../redux/types/state/Base").GenericState) => v is State.Ready | State.LoadingVideo | State.ReadyVideo; export declare const isEditedPageState: (state: PageState) => boolean; export declare const orderByPriority: (list: readonly CollectionTypeWithSubitemSlug[]) => CollectionTypeWithSubitemSlug[]; export declare const isNotEditableCollectionType: (slug: Slug) => boolean; export declare const page = 1; export declare const search = ""; export declare const editedStateLogic: (s: State.Ready, a: Actions.AcceptConfirmationPayload, c: Cloud, t: Translator) => State.Ready | State.Confirmation | State.Close | InitState; export declare const goToEditCollectionTypeLogic: (s: T, selectedCollectionTypeId: CollectionTypeId, c: Cloud, collections: CollectionTypeWithSubitemSlug[]) => CollectionTypeEditState.Init | CollectionTypeEditBannerState.Banner | T; export declare const isProOrTrial: ({ subscriptionType, daysLeft }: ShopModule.Ecwid) => boolean; export declare const daysLeft: ({ subscriptionType, daysLeft }: ShopModule.Ecwid) => number | undefined; interface ReadyWithEcwidPage extends Omit { page: EcwidShopIframeState.Loading | EcwidUtils.LoadingFromIframeState | EcwidShopBannerState.Init; } interface ReadyWithEcwidCustomersPage extends Omit { page: EcwidShopIframeState.Loading | EcwidUtils.LoadingFromIframeState; } export declare const goToIframeStateFromEcwid: (s: State.Ready | State.Confirmation, c: Cloud, page: BannerShopTypes, statePage: T, path: Path) => State.Ready | ReadyWithEcwidPage; export declare const goToCustomersIframeStateFromEcwid: (s: State.Ready | State.Confirmation, c: Cloud, statePage: T, path: Path) => State.Ready | ReadyWithEcwidCustomersPage; export declare const goToEditStateLogicFromEcwid: (s: State.State, a: Actions.AcceptConfirmationPayload, c: Cloud, t: Translator) => State.State | InitState; export interface CustomersWithGoToEditor extends Omit { page: CustomersState.WithGoToEditorState; } export declare const isCustomersWithGoToEditorState: (s: Project.State) => s is CustomersWithGoToEditor; export interface WithGoToEditorState extends Omit { page: CollectionItemsState.WithGoToEditorState; } export declare const isWithGoToEditorState: (s: State.State) => s is WithGoToEditorState; export interface WithProjectSettingsGoToEditorState extends Omit { page: ProjectSettingsState.WithGoToEditorState; } declare type GoToCollectionItemsStates = CollectionItemsListState.Init | PopupBannerState.State | StoryBannerState.State; export declare const goToCollectionItems: ({ id, singular, slug }: Actions.GoToCollectionItems["payload"], c: Cloud) => GoToCollectionItemsStates; export {};