import { FC } from 'react'; import { TemplateVariable } from './TemplateVariableEditor'; export interface GitHubConfig { enabled: boolean; /** When set, the backend resolves the token via the OAuth connection (token stays server-side) */ connectionId: string | null; repoName: string; visibility: 'public' | 'private'; scope: 'user' | 'org'; orgName: string; /** Personal access token — only used when connectionId is null */ token: string; } export interface GitHubConnection { id: string; name: string; externalAccountEmail?: string | null; externalAccountName?: string | null; provider: { key: string; name: string; }; } interface TemplateWizardProps { templateName: string; variables: TemplateVariable[]; /** URL of the template's source component repository, used for forking */ sourceRepoUrl?: string | null; /** Active GitHub OAuth connections for the current workspace */ githubConnections?: GitHubConnection[]; onClose: () => void; onSubmit: (data: { name: string; description: string; variableValues: Record; githubConfig: GitHubConfig | null; }) => Promise; } export declare const TemplateWizard: FC; export {};