import type { IDataObject, IExecuteFunctions, IHookFunctions, ILoadOptionsFunctions, IPollFunctions } from "n8n-workflow"; export declare const DEFAULT_V2_USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"; export declare const DEFAULT_V2_DEVICE_VERSION = 8240; export declare const NEED_UPGRADE_CLIENT_CODE = "need_upgrade_client"; export declare const NEED_UPGRADE_CLIENT_MESSAGE = "TickTick requires a newer client version. Update DEFAULT_V2_DEVICE_VERSION in sessionManager.ts to match the current TickTick web client."; export declare function v2SignonFailureMessage(errorCode?: string, errorMessage?: string): string; export declare function redactCredentialSecrets(text: string | undefined, emails: Array, passwords?: Array): string; type SignonContext = IExecuteFunctions | ILoadOptionsFunctions | IHookFunctions | IPollFunctions; export declare function toPythonStyleJson(obj: object): string; type V2Session = { token: string; inboxId: string; deviceId: string; userAgent: string; deviceVersion: number; username: string; }; export declare function _setV2SessionClockForTests(next?: () => number): void; export declare const V2_SESSION_TTL_MS: number; export declare const V2_LOGIN_FAILURE_TTL_MS: number; export declare const V2_TRANSIENT_FAILURE_TTL_MS: number; export declare function getV2SessionCacheStats(): { sessions: number; failures: number; }; export declare function generateDeviceId(): string; export declare function buildDeviceHeader(deviceId: string, deviceVersion?: number): string; export declare function buildV2Headers(sessionToken: string, deviceId: string, userAgent?: string, deviceVersion?: number): IDataObject; export declare function getV2Session(context: SignonContext): Promise; export declare function clearV2Session(username: string): void; export declare function getV2ApiBase(): string; export {};