import type { ReactElement } from 'react'; import type { CopilotAccountsView } from './copilot-accounts-types.ts'; type AccountResult = { ok: true; value: CopilotAccountsView; } | { ok: false; error: unknown; }; export interface CopilotAccountsRemote { get(): Promise; refreshIdentity(): Promise; ensureIdentity(): Promise; add(): Promise; cancel(): Promise; switchAccount(accountId: string, expectedRevision: number): Promise; reauthorize(accountId: string, expectedRevision: number): Promise; removeAccount(accountId: string, expectedRevision: number): Promise; } export type CopilotAccountAddRemote = Pick; export declare function CopilotAccountAdd(props: { remote?: CopilotAccountAddRemote; onChanged?: () => void; locale?: string; }): ReactElement; /** Copy owned presentation fields before decoding traced Client values. */ export declare function accountsViewFrom(value: unknown): CopilotAccountsView | undefined; export declare function accountIdentityLabel(view: CopilotAccountsView | undefined): string | undefined; interface AccountControlsProps { expanded: boolean; refreshKey?: number; onChanged?: () => void; authorizationBusy?: boolean; configured?: boolean; accountSettings?: ReactElement; continuationSettings?: ReactElement; locale?: string; } export declare function CopilotAccountsPanel(props: AccountControlsProps & { remote?: CopilotAccountsRemote; }): ReactElement; export {}; //# sourceMappingURL=copilot-accounts-card.d.ts.map