/** * The Lit DevTools app in Astro's dev toolbar: the panel the plugin serves at * `/__lit/`, in an iframe in a toolbar window. Loaded in the page by Astro * from the path `astro.ts` registers, so it imports nothing. * * The panel's RPC asks for devframe's one-time code unless client auth is * off, and devframe only prompts for it in a top-level page, never in a * frame. So the window asks instead, when the server says a code is needed * and this browser holds no token yet, and hands the code to the panel in * its URL fragment, where devframe reads it. The link devframe prints with * the code opens the panel at `/__lit/` itself, whose token then serves this * window too. */ /** The slice of Astro's `ToolbarAppEventTarget` the app uses. */ interface ToolbarApp { onToggled(callback: (options: { state: boolean; }) => void): void; onToolbarPlacementUpdated(callback: (options: { placement: string; }) => void): void; } /** The slice of Astro's toolbar `serverHelpers` the app uses. */ interface ToolbarServer { send(event: string, payload: unknown): void; on(event: string, callback: (payload: T) => void): void; } declare const _default: { init(canvas: ShadowRoot, app: ToolbarApp, server: ToolbarServer): void; }; export default _default; //# sourceMappingURL=toolbar-app.d.ts.map