export declare class RateLimitError extends Error { readonly rawMessage: string; readonly resetAt: Date | undefined; constructor(rawMessage: string, resetAt: Date | undefined); } /** * Raised when the provider CLI reports it is logged out / unauthenticated / * out of credit — a state the loop must NOT treat as task failure. Unlike a * rate limit there is no reset time: the loop pauses indefinitely and asks the * operator to re-authenticate. */ export declare class AuthError extends Error { readonly rawMessage: string; constructor(rawMessage: string); } export declare class AuthDetector { /** True when text contains any known auth-failure phrase. */ static matches(text: string): boolean; /** Build an AuthError from text, or null when text is not an auth failure. */ static detect(text: string): AuthError | null; } export declare class RateLimitDetector { /** True when text contains any known rate-limit phrase. */ static matches(text: string): boolean; /** Build a RateLimitError from text, parsing the reset time if present. */ static toError(text: string): RateLimitError; /** Match + build in one step. Returns null when text is not a rate limit. */ static detect(text: string): RateLimitError | null; /** * Parse "resets 9pm (Europe/Sofia)" / "resets 8:20pm (Europe/Sofia)" into a * UTC Date. Returns undefined when no reset clause is present or parseable. */ static parseResetTime(text: string): Date | undefined; }