import { InitialMessage, WidgetMessage } from './interfaces';
type MessageHandler = (event: WidgetMessage<unknown>) => void;
export declare function getAppLayoutMessageHandler(): MessageHandler | undefined;
export declare function getAppLayoutInitialMessages<T>(): Array<InitialMessage<T>>;
export declare function pushInitialMessage<T>(message: InitialMessage<T>): void;
export declare function setInitialMessage(message: Array<InitialMessage<unknown>>): void;
export declare function registerAppLayoutHandler(handler: MessageHandler): () => void;
export declare function clearInitialMessages(): void;
/**
 * Returns whether there is an app layout present on this page or not
 */
export declare function isAppLayoutReady(): boolean;
/**
 * Returns a promise that resolves once the app layout has loaded
 */
export declare function whenAppLayoutReady(): Promise<unknown>;
export {};
//# sourceMappingURL=core.d.ts.map