import * as z from "zod/mini"; import type { WidgetLayoutTransitionPolicy } from "../host/widget-layout-transition-plan.js"; import { type Generation } from "./v3-generation.js"; import { type ViewHostPlacement } from "./view-host-bootstrap.js"; export declare const viewPlacementSchema: z.ZodMiniType; export type ViewPlacement = ViewHostPlacement; /** * View -> host: the view identifies the generation and view it was bootstrapped * with. Receiving this message establishes the view channel, but does not imply * that the view has measured renderable content. */ export declare const actionViewConnectSchema: z.ZodMiniObject<{ gen: z.core.$ZodBranded, "Generation", "out">; t: z.ZodMiniLiteral<"getuserfeedback:action:viewConnect">; viewId: z.ZodMiniString; }, z.core.$strip>; export type ActionViewConnect = z.output; /** * View -> host -> core: the view reports renderable geometry. `viewId` is * optional on the view-originated message because a channel-owning host may * stamp it before forwarding the message to core. When the host supplied a * viewport revision, the view echoes that opaque token only on measurements * made from the corresponding viewport constraints. */ export declare const eventViewSizeSchema: z.ZodMiniObject<{ gen: z.core.$ZodBranded, "Generation", "out">; viewId: z.ZodMiniOptional>; t: z.ZodMiniLiteral<"getuserfeedback:event:viewSize">; width: z.ZodMiniNumber; height: z.ZodMiniNumber; intrinsicWidth: z.ZodMiniOptional>; viewportRevision: z.ZodMiniOptional>; frameAppearance: z.ZodMiniOptional, z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{ kind: z.ZodMiniLiteral<"none">; }, z.core.$strict>, z.ZodMiniObject<{ kind: z.ZodMiniLiteral<"page">; border: z.ZodMiniString; borderRadius: z.ZodMiniString; boxShadow: z.ZodMiniString; resolvedBorder: z.ZodMiniOptional; red: z.ZodMiniNumber; green: z.ZodMiniNumber; blue: z.ZodMiniNumber; alpha: z.ZodMiniNumber; }, z.core.$strict>; style: z.ZodMiniEnum<{ dashed: "dashed"; dotted: "dotted"; double: "double"; groove: "groove"; hidden: "hidden"; inset: "inset"; none: "none"; outset: "outset"; ridge: "ridge"; solid: "solid"; }>; widthPx: z.ZodMiniNumber; }, z.core.$strict>>; resolvedBorderRadius: z.ZodMiniOptional; verticalPx: z.ZodMiniNumber; }, z.core.$strict>; topRight: z.ZodMiniObject<{ horizontalPx: z.ZodMiniNumber; verticalPx: z.ZodMiniNumber; }, z.core.$strict>; bottomRight: z.ZodMiniObject<{ horizontalPx: z.ZodMiniNumber; verticalPx: z.ZodMiniNumber; }, z.core.$strict>; bottomLeft: z.ZodMiniObject<{ horizontalPx: z.ZodMiniNumber; verticalPx: z.ZodMiniNumber; }, z.core.$strict>; }, z.core.$strict>>; resolvedBoxShadow: z.ZodMiniOptional; red: z.ZodMiniNumber; green: z.ZodMiniNumber; blue: z.ZodMiniNumber; alpha: z.ZodMiniNumber; }, z.core.$strict>; offsetXPx: z.ZodMiniNumber; offsetYPx: z.ZodMiniNumber; blurRadiusPx: z.ZodMiniNumber; spreadRadiusPx: z.ZodMiniNumber; inset: z.ZodMiniBoolean; }, z.core.$strict>>>; }, z.core.$strict>], "kind">>>; placement: z.ZodMiniOptional>>; transitionPolicy: z.ZodMiniOptional>>; layoutTransactionId: z.ZodMiniOptional>; }, z.core.$strip>; export type EventViewSize = z.output; export declare function buildEventViewSize(input: { gen: number | Generation; viewId?: string; width: number; height: number; intrinsicWidth?: number; viewportRevision?: string; frameAppearance?: EventViewSize["frameAppearance"]; placement?: EventViewSize["placement"]; transitionPolicy?: EventViewSize["transitionPolicy"]; layoutTransactionId?: string; }): EventViewSize; /** * Host -> View: the host reports its viewport constraints for the view to * adjust against. `viewportRevision` is an optional opaque host token that the * view echoes on measurements made from these constraints. */ export declare const eventViewportSizeSchema: z.ZodMiniObject<{ gen: z.core.$ZodBranded, "Generation", "out">; t: z.ZodMiniLiteral<"getuserfeedback:event:viewportSize">; viewId: z.ZodMiniString; width: z.ZodMiniNumber; height: z.ZodMiniNumber; maxWidth: z.ZodMiniNumber; maxHeight: z.ZodMiniNumber; viewportRevision: z.ZodMiniOptional>; padding: z.ZodMiniObject<{ x: z.ZodMiniNumber; y: z.ZodMiniNumber; }, z.core.$strip>; }, z.core.$strip>; export type EventViewportSize = z.output; export declare function buildEventViewportSize(input: { gen: number | Generation; viewId: string; width: number; height: number; maxWidth: number; maxHeight: number; viewportRevision?: string; padding: { x: number; y: number; }; }): EventViewportSize; /** * Host -> View: the host confirms that its side of a view layout transaction * has committed, allowing the view to commit the matching layout state. An * optional schedule coordinates their timed transitions. */ export declare const eventLayoutTransactionCommittedSchema: z.ZodMiniObject<{ gen: z.core.$ZodBranded, "Generation", "out">; t: z.ZodMiniLiteral<"getuserfeedback:event:layoutTransactionCommitted">; viewId: z.ZodMiniString; layoutTransactionId: z.ZodMiniString; transitionSchedule: z.ZodMiniOptional; transactionId: z.ZodMiniString; startAtEpochMs: z.ZodMiniNumber; }, z.core.$strict>>; }, z.core.$strip>; export type EventLayoutTransactionCommitted = z.output; export declare function buildEventLayoutTransactionCommitted(input: { gen: number | Generation; viewId: string; layoutTransactionId: string; transitionSchedule?: EventLayoutTransactionCommitted["transitionSchedule"]; }): EventLayoutTransactionCommitted; /** * View -> host -> core: the embedded view requests closure. As with view size, * a channel-owning host may stamp `viewId` while forwarding the message. */ export declare const actionRequestCloseViewSchema: z.ZodMiniObject<{ gen: z.core.$ZodBranded, "Generation", "out">; viewId: z.ZodMiniOptional>; t: z.ZodMiniLiteral<"getuserfeedback:action:requestCloseView">; }, z.core.$strip>; export type ActionRequestCloseView = z.output; //# sourceMappingURL=view-host-control-messages.d.ts.map