/** * Copyright (c) 2026 Microblink Ltd. All rights reserved. */ import { ParentComponent } from "solid-js"; import { MountableElement } from "solid-js/web"; import { CameraManager } from "../core/CameraManager"; import { DismountCallback } from "./createCameraManagerUi"; /** * Creates a camera manager solid store. */ declare function createCameraManagerSolidStore(): { (): import("solid-js").Accessor; (selector: (state: import("..").CameraManagerStore) => U, equals?: ((a: U, b: U) => boolean) | undefined): U extends (U extends (...args: any[]) => any ? U : never) ? U : import("solid-js").Accessor; } & Omit, "subscribe"> & { subscribe: { (listener: (selectedState: import("..").CameraManagerStore, previousSelectedState: import("..").CameraManagerStore) => void): () => void; (selector: (state: import("..").CameraManagerStore) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: { equalityFn?: ((a: U, b: U) => boolean) | undefined; fireImmediately?: boolean; } | undefined): () => void; }; }; /** * !IMPORTANT: this is not a reactive store. It's just a plain javascript object exposed * as a context. The store is `cameraManagerSolidStore`, and it doesn't have anything * related to the Camera Manager UI component */ type CameraUiStore = { /** Function which will dismount the component */ dismountCameraUi: () => void; /** The camera manager. */ cameraManager: CameraManager; /** This is the camera manager zustand store converted to SolidJS' signal store via `solid-zustand` */ cameraManagerSolidStore: ReturnType; /** The mountable HTML element. */ mountTarget: MountableElement; /** Whether to show the mirror camera button */ showMirrorCameraButton: boolean; /** Whether to show the torch button */ showTorchButton: boolean; /** Whether to show the close button */ showCloseButton: boolean; /** Whether to show the camera error modal */ showCameraErrorModal: boolean; /** The z-index of the camera UI */ zIndex?: number; /** Sets a callback to be called when the component is unmounted. * Returns a cleanup function that removes the callback when called. */ addOnDismountCallback: (fn: DismountCallback) => () => void; }; /** * The CameraUiStoreProvider component. */ export declare const CameraUiStoreProvider: ParentComponent<{ dismountCameraUi: () => void; cameraManager: CameraManager; mountTarget: MountableElement; showMirrorCameraButton: boolean; showTorchButton: boolean; showCloseButton: boolean; showCameraErrorModal: boolean; zIndex?: number; addOnDismountCallback: (fn: DismountCallback) => () => void; }>; /** * The useCameraUiStore hook. */ export declare function useCameraUiStore(): CameraUiStore; export {}; //# sourceMappingURL=CameraUiStoreContext.d.ts.map