declare type IframesMessageType = "spaces" | "workspaces" | "hello-from-spaces-bar" | "hello-from-space-panel" | "hello-from-sign-in" | "is-signed-in" | "streamed-hosts-data" | "has-focus" | "iframe-focus-change" | "synced-private-registry" | "set-is-logout-dropdown-opened" | "user-node-access" | "request-refresh-access"; interface IframesMessage { type: IframesMessageType; payload: T; } export declare const sendToChildIframe: (htmlIframeElement: string | HTMLIFrameElement, message: IframesMessage) => void; export declare const useListenToPostMessage: (messageType: IframesMessageType, callback?: (newMessage: T) => void, defaultState?: T | (() => T)) => [T, () => void]; export {};