import type { ScannerSubscriptionResult, ScannerSource, StatefulRemoteSubscribable } from '@shopify/retail-ui-extensions'; export type { ScannerSource, ScannerSubscriptionResult, ScannerApiContent, ScannerApi, } from '@shopify/retail-ui-extensions'; /** * A hook utilizing `useState` and the `useStatefulSubscribableScannerData` function to create a component state. * @returns this hook returns the latest scan result state which re-renders on change. */ export declare function useScannerDataSubscription(): ScannerSubscriptionResult; /** * A hook utilizing the `makeStatefulSubscribable` function to allow multiple scanner subscriptions. * @returns StatefulRemoteSubscribable object with a scan result in it. */ export declare function useStatefulSubscribableScannerData(): StatefulRemoteSubscribable; /** * A function destroying the subscriptions `useStatefulSubscribableScannerData` has. */ export declare function destroyStatefulSubscribableScannerData(): void; /** * A hook utilizing `useState` and the `useStatefulSubscribableScannerData` function to create a component state. * @returns this hook returns the latest scan result state which re-renders on change. */ export declare function useScannerSourcesSubscription(): ScannerSource[]; /** * A hook utilizing the `makeStatefulSubscribable` function to allow multiple scanner subscriptions. * @returns StatefulRemoteSubscribable object with a scan result in it. */ export declare function useStatefulSubscribableScannerSources(): StatefulRemoteSubscribable; /** * A function destroying the subscriptions `useStatefulSubscribableScannerData` has. */ export declare function destroyStatefulSubscribableScannerSources(): void; //# sourceMappingURL=scanner-api.d.ts.map