import type { Meta, StoryObj } from '@storybook/react';
import { AIDInput } from './aid-input.js';
/**
 * ## Autocomplete input component
 *
 * `AIDInput` is a specialized input component for handling AIDs (Agent Identifiers) with advanced
 * autocomplete functionality. It allows users to search and select items intuitively as they type.
 *
 * ### Important configs:
 *
 * **1.`fetchOptionsCallback` (for dynamic autocomplete)**
 * - Executes while the user types in the input field
 * - Receives the user's input text as a parameter
 * - Must return a list of options that match the search criteria
 * - Enables real-time search from APIs, databases, or others external or internal data sources
 *
 * **2.`fetchSelectedOptionCallback` (to update the preview of the selected option)**
 * - Called when the "refresh" button in the preview of the selected option is clicked
 * - Receives the selected option's ID/value as a parameter
 * - Must return the updated details of that specific option or undefined if the option is not found for some reason
 * - As `fetchOptionsCallback` can be used synchronously or asynchronously
 *
 * ### Basic usage example:
 *
 * ```tsx
 * <AIDInput
 *   name="agent-selector"
 *   label="Select Agent"
 *   placeholder="did:ethr:"
 *   variant="withValueTitleAndDescription"
 *
 *   // search options as the user types
 *   fetchOptionsCallback={async (userInput) => {
 *     const results = await searchAgents(userInput)
 *     return results.map(agent => ({
 *       value: agent.id, // unique agent ID
 *       title: agent.title, // agent title or name
 *       path: agent.path, // agent path or location
 *       description: agent.description, // agent description or summary
 *       agentType: agent.type, // agent type (e.g. "human", "bot", "organization", etc.)
 *       icon: agent.icon // agent icon
 *     }))
 *   }}
 *
 *   // get details of a specific option by its ID/value
 *   fetchSelectedOptionCallback={async (agentId) => {
 *     const agent = await getAgentById(agentId)
 *     return {
 *       value: agent.id,
 *       title: agent.title,
 *       path: agent.path,
 *       description: agent.description,
 *       agentType: agent.type,
 *       icon: agent.icon
 *     }
 *   }}
 * />
 * ```
 *
 * > **Note:** This component does not have built-in validation. If you need built-in validation
 * > you can use the [AIDField](?path=/docs/scalars-aid-field--readme)
 * > component.
 */
declare const meta: Meta<typeof AIDInput>;
export default meta;
type Story = StoryObj<typeof AIDInput>;
export declare const Default: Story;
export declare const Empty: Story;
export declare const Open: Story;
export declare const Filled: Story;
export declare const WithDifferencesAddition: Story;
export declare const WithDifferencesRemoval: Story;
export declare const WithDifferencesMixed: Story;
//# sourceMappingURL=aid-input.stories.d.ts.map