import type { CloseResult, HostCapabilities, MountCredential, ResolvedView, SandboxProfile } from '@astrale-os/shell'; import type { CSSProperties, ReactNode } from 'react'; import type { WindowState } from './lifecycle/states.js'; /** Imperative handle on a mounted `ViewHost` (API ยง10). */ export interface ViewHostHandle { readonly windowId: string | null; close(opts?: { force?: boolean; timeoutMs?: number; }): Promise; /** The one explicit remount. */ refresh(): void; } /** Static iframe sandbox flags, an explicit opt-out, or a policy over the resolved mount. */ export type SandboxPolicy = SandboxProfile | null | ((view: ResolvedView) => SandboxProfile | null); export interface ViewHostProps { /** One canonical target paired with one untouched View route. */ view: ResolvedView; capabilities?: HostCapabilities; sandbox?: SandboxPolicy; credential?: MountCredential; handshakeTimeoutMs?: number; delegationTtlSeconds?: number; /** Rendered inside the anchor while the frame is not `ready`. */ fallback?: (state: WindowState) => ReactNode; onStateChange?: (state: WindowState) => void; className?: string; style?: CSSProperties; } export declare const ViewHost: import("react").ForwardRefExoticComponent>; //# sourceMappingURL=host.d.ts.map