import { type AuthBot, type AuthChatId, type AuthMessage, type TelegramAuthOptions } from "./auth-support.js"; export * from "./auth-support.js"; interface ConnectorAuthBot extends AuthBot { sendMessage(chatId: string, text: string): Promise; deleteMessage(chatId: string, messageId: number): Promise; } export declare function createTelegramAuth(bot: ConnectorAuthBot, config: { ownerUserIds?: readonly number[]; flowTtlSeconds?: number; }, allowFrom: ReadonlySet | null, env?: NodeJS.ProcessEnv): TelegramAuth | undefined; export declare class TelegramAuth { private readonly bot; private readonly owners; private readonly env; private readonly sendMessage; private readonly deleteMessage; private readonly spawnPty; private readonly run; private readonly clock; private readonly logger; private readonly flowTtlMs; private readonly active; private readonly pending; private readonly generations; private stopped; constructor(options: TelegramAuthOptions); start(): void; handle(message: AuthMessage): Promise; private handleInput; private handleCommand; handleIncoming(userId: number | string, chatType: string, chatId: AuthChatId, messageId: number | string | undefined, text: string): Promise; scrubExplicitPayload(message: AuthMessage): Promise; decorateReply(context: { chatType?: string; userId?: number | string; } | undefined, text: string): string; status(owner: number, chatId: AuthChatId, warning?: string): Promise; private hasActiveFlow; stop(): void; private dispatch; private startFlow; private attach; private finish; private providerState; private activeStatus; private cancel; private writeCode; private discoveryLines; private updateDiscovery; private timeout; private clear; private detach; private isCurrent; private isCurrentGeneration; private scrub; private safeSend; } //# sourceMappingURL=auth.d.ts.map