/** Bounded Ink surfaces for provider login and logout. */ import { type ReactElement } from 'react'; import { type AuthorizationInteraction, type AuthorizationStatus } from '@deepseek-ai/dsh-authorization'; import type { CredentialKey } from '@deepseek-ai/dsh-credentials'; import type { ProviderAuthorizationRow } from '../authorization.ts'; export interface ProviderAuthorizationPanelProps { readonly row: ProviderAuthorizationRow; /** * Start this method immediately instead of showing the picker: a * single-method provider signs in with no extra step. */ readonly autoStartMethod?: string; begin(row: ProviderAuthorizationRow, method: string, interaction: AuthorizationInteraction, signal: AbortSignal): Promise; cancel(key: CredentialKey): void; openUrl(url: string): boolean; copy(text: string): Promise; done(): void; back(): void; } /** Run one upstream authorization flow without letting notices or prompts exceed the panel budget. */ export declare function ProviderAuthorizationPanel(props: ProviderAuthorizationPanelProps): ReactElement; export declare function ProviderAuthorizationLogoutPanel({ row, confirm, done, back }: { row: ProviderAuthorizationRow; confirm: (row: ProviderAuthorizationRow) => Promise; done: () => void; back: () => void; }): ReactElement;