import { Meta, StoryFn } from '@storybook/react-vite'; import { ComponentType } from 'react'; import { Background } from './types'; import { StoryMigration } from './migration'; export declare const getFunctionType: (functions: { func: (...a: any[]) => any; name: string; }[], argTypeOptions?: { type?: 'radio'; addUndefined: boolean; }) => { control: { type: "radio"; }; options: ({ (...args: Parameters<(...a: any[]) => any>): any; toString: () => string; } | undefined)[]; defaultValue: { (...args: Parameters<(...a: any[]) => any>): any; toString: () => string; } | undefined; }; type InputType = Required>['argTypes']>['p']; type Values = 'String' | 'Number' | 'Boolean' | 'Symbol' | 'Hidden'; type FunctionRadioInputType = InputType & { options: NonNullable; }; export declare const ArgTypes: Record & { FunctionRadio: (name: string) => FunctionRadioInputType; MuiProps: (name: string, url: string) => InputType; RestProps: (description: string) => InputType; }; type MutateMetaOptions | Record> = { sourcePath?: string; designPath?: string; description?: string; generateImport?: boolean; argTypes?: Meta['argTypes']; args?: Meta['args']; isDeprecated?: boolean; isExperimental?: boolean; defaultBackground?: Background; componentExportName?: string; showPropsBlock?: boolean; showCodeSource?: boolean; showDemoHeader?: boolean; useV1Export?: boolean; firstStoryIsDemo?: boolean; /** * Inline V1->V2 (or deprecated-V2->Next) migration spec. Single source of truth: Storybook * renders it for humans and the @corva/ui MCP server extracts it for AI agents. Author with * inline literals only — see `StoryMigration`. */ migration?: StoryMigration; /** * ONE LINE for an AI agent choosing between components — never rendered in Storybook. * * `description` answers "how do I use this"; this answers "what is this, and why pick it over * the component next to it". It is NOT a shortened `description`: writing the first sentence * again here helps nobody. State what the component is, what distinguishes it, and any fact * that changes the choice (deprecated -> name the replacement). * * Add it only when `description` runs past a single paragraph — a short description already * serves as the summary, and the fallback uses it losslessly. * * Carried on `parameters` like every other field here. Nothing renders it: `ComponentPage` * reads named blocks, never the parameter bag, which is the same reason `migration`'s * `sourceDefaultName` has never reached a reader. See the `agent-summary-authoring` skill. */ agentSummary?: string; }; export declare const mutateMeta: | Record>(meta: Meta, props: MutateMetaOptions) => void; type PartialStory = { name?: string; description?: string; fullWidth?: boolean; background?: Background; showCodeSource?: boolean; }; export declare const mutateStory: (story: StoryFn, { name, description, fullWidth, background, showCodeSource }: PartialStory) => void; export {}; //# sourceMappingURL=utils.d.ts.map