import type { RateLimitInfo } from '../../core/models/response.js'; import type { ProviderType } from '../../shared/types/provider.js'; export declare function containsRateLimitMarker(text: string | undefined): boolean; export declare function containsRateLimitError(text: string | undefined): boolean; export declare function resolveRateLimitTextSource(text: string | undefined): 'stream_marker' | undefined; export declare function buildRateLimitInfo(provider: ProviderType, source: RateLimitInfo['source'], text?: string): RateLimitInfo; export declare function resolveRateLimitErrorMessage(text?: string): string; export declare function buildRateLimitedResponseFields(provider: ProviderType, source: RateLimitInfo['source'], text?: string): { status: 'rate_limited'; content: ''; error: string; errorKind: 'rate_limit'; rateLimitInfo: RateLimitInfo; }; //# sourceMappingURL=detection.d.ts.map