import type * as OpenFin from '../../../OpenFin'; import { Transport } from '../../../transport/transport'; import { Base } from '../../base'; type Identity = OpenFin.Identity; type InitLayoutOptions = OpenFin.InitLayoutOptions; type PresetLayoutOptions = OpenFin.PresetLayoutOptions; /** * @lends Platform#Layout */ export declare class Layout extends Base { #private; init: (options?: InitLayoutOptions) => Promise; identity: Identity; private platform; wire: Transport; constructor(identity: OpenFin.Identity, wire: Transport); /** * Returns the configuration of the window's layout. Returns the same information that is returned for all windows in getSnapshot. * @return { Promise } * @tutorial Layout.getConfig */ getConfig(): Promise; /** * Retrieves the top level content item of the layout. * @return {Promise} */ getRootItem(): Promise; /** * Replaces a Platform window's layout with a new layout. Any views that were in the old layout but not the new layout * will be destroyed. * @param { LayoutConfig } layout New layout to implement in the target window. * Please see explanation of a layout {@link https://developers.openfin.co/docs/platform-api#section-layout here}. * @return { Promise } * @tutorial Layout.replace */ replace: (layout: OpenFin.LayoutOptions) => Promise; /** * Replaces the specified view with a view with the provided configuration. * The old view is stripped of its listeners and either closed or attached to the provider window * depending on `detachOnClose` view option. * @param { Identity } viewToReplace Identity of the view to be replaced * @param { View~options } newView Creation options of the new view. * @return { Promise } * @tutorial Layout.replaceView */ replaceView: (viewToReplace: Identity, newView: OpenFin.PlatformViewCreationOptions) => Promise; /** * Replaces a Platform window's layout with a preset layout arrangement using the existing Views attached to the window. * The preset options are `columns`, `grid`, `rows`, and `tabs`. * @param { PresetLayoutOptions } options Mandatory object with `presetType` property that sets which preset layout arrangement to use. * The preset options are `columns`, `grid`, `rows`, and `tabs`. * @return { Promise } * @tutorial Layout.applyPreset */ applyPreset: (options: PresetLayoutOptions) => Promise; } export {};