/** * Shared wizard utilities for integration wizards (GitHub, Linear, Notion). * * Provides credential prompting, browse-or-URL selection, and URL input * that are reused across all integration wizards. */ export type CredentialOptions = { /** The key name in the credentials store (e.g., 'token', 'apiKey') */ credKey: string; /** URL where the user can create/find their credential */ consoleUrl: string; /** Environment variable name (e.g., 'GITHUB_TOKEN') */ envVar: string; /** Optional: check CLI auth before prompting (returns true if authenticated) */ checkCliAuth?: () => Promise; }; /** * Ensure credentials exist for a source. If missing, prompt the user to enter them. * Returns the credential value. */ export declare function ensureCredentials(sourceName: string, displayName: string, opts: CredentialOptions): Promise; /** * Ask the user whether they want to browse interactively or paste a URL. */ export declare function askBrowseOrUrl(displayName: string): Promise<'browse' | 'url'>; /** * Prompt the user to paste a URL, with domain validation. */ export declare function askForUrl(displayName: string, domainPattern: RegExp): Promise; //# sourceMappingURL=shared.d.ts.map