import type { ReactNode } from 'react'; import type { RocDocument } from 'rest-on-couch-client'; import { Roc } from 'rest-on-couch-client'; import type { SampleEntryContent, SampleEntryId } from '../types/db.js'; export declare function useIframeBridgeContext(): IframeBridgeReadyContextType; export declare function useIframeBridgeSample(): RocDocument; interface IframeBridgeReadyContextTypeBase { state: 'ready'; data: IframeDataMessage; roc: Roc; } interface IframeBridgeReadyContextTypeWithSample extends IframeBridgeReadyContextTypeBase { hasSample: true; sample: RocDocument; } interface IframeBridgeReadyContextTypeWithoutSample extends IframeBridgeReadyContextTypeBase { hasSample: false; sample: null; } type IframeBridgeReadyContextType = IframeBridgeReadyContextTypeWithSample | IframeBridgeReadyContextTypeWithoutSample; interface IframeDataMessage { couchDB: { url: string; database: string; }; uuid: string; } export declare function IframeBridgeProvider(props: { children: ReactNode; requireSample?: boolean; allowStandalone?: boolean; }): import("react").JSX.Element; export {}; //# sourceMappingURL=iframe_bridge.d.ts.map