import type { ContextHelperFn } from "./types"; interface InteractableComponentMetadata { id: string; componentName: string; description: string; props: unknown; propsSchema: string; state: unknown; isSelected: boolean; stateSchema: string; } export interface InteractablesContext { components: InteractableComponentMetadata[]; } /** * Prebuilt context helper that provides information about all interactable components currently on the page. * This gives the AI awareness of what components it can interact with and their current state. * @returns an object with description and components, or null to skip including this context. * To disable this helper, override it with a function that returns null: * @example * ```tsx * // To disable the default interactables context * const { addContextHelper } = useTamboContextHelpers(); * addContextHelper("interactables", () => null); * * // To customize the context * addContextHelper("interactables", () => ({ * description: "Custom description", * components: getCustomComponentsSubset() * })); * ``` */ export declare const currentInteractablesContextHelper: ContextHelperFn; /** * Creates an interactables context helper with access to the current components. * This is used internally by TamboInteractableProvider. * @param components Array of interactable components * @returns A context helper function that returns component metadata or null if no components exist */ export declare const createInteractablesContextHelper: (components: unknown[]) => (() => InteractablesContext | null); export {}; //# sourceMappingURL=current-interactables-context-helper.d.ts.map