/** * The PUBLIC type surface of `falcon-neo/sdk`, standalone (no imports), so the * CLI can copy it next to the generated project shim as * `src/falcon-sdk-shim.d.ts`. This file is the blessed tool-facing API; keep * it in lockstep with sdk.ts/protocol.ts when the public surface grows (the * runtime shim is generated from the real build, so only TYPES live here). */ export type FalconParamType = 'range' | 'number' | 'text' | 'color' | 'select' | 'boolean' export interface FalconSelectOption { value: string /** Human label; the harness Title-Cases raw keywords if omitted. */ label?: string /** ELI5 one-liner shown as the option subtitle. */ description?: string } export interface FalconParamOptions { label: string type: FalconParamType value: number | string | boolean min?: number max?: number step?: number options?: FalconSelectOption[] /** Inspector section this param renders under. */ group?: string /** When set, the harness applies edits by setting this CSS var on :root. */ cssVar?: string /** ELI5 one-liner; surfaces as the field hint. */ hint?: string onChange?: (value: number | string | boolean) => void } export interface FalconSdk { /** Declare a page (a row in the Falcon pages panel). Ids are permanent. */ page(id: string, title: string, opts?: { icon?: string; onShow?: () => void }): void /** Declare an inspector control. Ids are permanent; redeclaring updates. */ param(id: string, decl: FalconParamOptions): void /** Declare a toolbar action tile. */ action(id: string, title: string, handler: () => void, opts?: { icon?: string }): void /** The tool's document; the harness owns persistence. */ store: { get(): Promise set(doc: unknown): void onChange(cb: (doc: unknown) => void): () => void } /** Play a Falcon chrome sound cue. */ sound(cue: string): void } export declare const falcon: FalconSdk export declare const SDK_VERSION: string