import type { CrossDomainFunctionType } from 'post-robot'; import { ZalgoPromise } from 'zalgo-promise'; import { CONTEXT } from './constants'; import type { NormalizedComponentOptions } from './component'; import type { ChildProps, Dimensions } from './props'; import type { AnyProps } from './types'; export type ChildExports = { readonly updateProps: (props: AnyProps) => ZalgoPromise; readonly close: () => ZalgoPromise; readonly name: string; }; export type ParentExportsRemote = { readonly init: CrossDomainFunctionType<[ChildExports], void>; readonly close: CrossDomainFunctionType<[], void>; readonly checkClose: CrossDomainFunctionType<[], boolean>; readonly resize: CrossDomainFunctionType<[Dimensions], void>; readonly onError: CrossDomainFunctionType<[unknown], void>; readonly show: CrossDomainFunctionType<[], void>; readonly hide: CrossDomainFunctionType<[], void>; readonly export: CrossDomainFunctionType<[X], void>; }; export type InitialChildPayload = { readonly uid: string; readonly tag: string; readonly version: string; readonly context: typeof CONTEXT[keyof typeof CONTEXT]; readonly childDomainMatch: unknown; readonly props: P; readonly exports: ParentExportsRemote; readonly enableBfcache: boolean; }; export type ChildComponent = { readonly getProps: () => ChildProps; readonly init: () => ZalgoPromise; }; export declare const childComponent:

(options: NormalizedComponentOptions) => ChildComponent; //# sourceMappingURL=child.d.ts.map