import type { LanguageModelV3FinishReason, LanguageModelV3Prompt, LanguageModelV3Usage, SharedV3ProviderMetadata } from '@ai-sdk/provider';
import { type RuntimeCallOptions, type RuntimeStreamCallOptions } from '../runtime/browser.js';
import { Struct } from '../runtime/generated/google/protobuf/struct.js';
import { type ChatContentPart } from '../runtime/generated/runtime/v1/ai.js';
import { type AiRoutePolicy } from '../types/index.js';
import { extractGenerateText as extractGenerateTextShared } from '../internal/scenario-output.js';
import { type NimiAiProviderConfig, type RuntimeDefaults, type RuntimeForAiProvider } from './types.js';
import { asRecord, normalizeText } from '../internal/utils.js';
import { ensureSafeExternalMediaUrl, ensureText, fromRouteDecision, toCallOptions } from './helpers-shared.js';
export { ensureSafeExternalMediaUrl, ensureText, fromRouteDecision, toCallOptions };
export { collectArtifacts, executeScenarioJob, normalizeProviderError, toEmbeddingVectors, toEmbeddingVectorsFromScenarioOutput, toSpeechSynthesisArtifactsFromScenarioOutput, toSpeechTranscriptionFromScenarioOutput, } from './helpers-scenario.js';
export { asRecord, normalizeText };
export declare const extractGenerateText: typeof extractGenerateTextShared;
export declare function parseCount(value: unknown): number | undefined;
export declare function resolveRoutePolicy(value: AiRoutePolicy | undefined): number;
export declare function toProviderMetadata(input: {
    traceId?: string;
    routeDecision?: unknown;
    modelResolved?: string;
}): SharedV3ProviderMetadata;
export declare function toUsage(value: unknown): LanguageModelV3Usage;
export declare function toFinishReason(value: unknown): LanguageModelV3FinishReason;
export declare function extractTextValue(part: unknown): string;
export declare function toRuntimePrompt(prompt: LanguageModelV3Prompt): {
    systemPrompt: string;
    hasNonSystemInput: boolean;
    input: Array<{
        role: string;
        content: string;
        name: string;
        parts: ChatContentPart[];
    }>;
};
export declare function toBase64(value: Uint8Array): string;
export declare function toImageFileSource(value: unknown): string;
export declare function toImageFileSources(value: unknown): string[];
export declare function toUtf8(value: Uint8Array): string;
export declare function toProtoStruct(input: Record<string, unknown> | undefined): Struct | undefined;
export declare function toLabels(input: unknown): Record<string, string> | undefined;
export declare function ensureRuntime(config: NimiAiProviderConfig): {
    runtime: RuntimeForAiProvider;
    defaults: RuntimeDefaults;
};
export declare function toStreamOptions(defaults: RuntimeDefaults, input: {
    timeoutMs?: number;
    metadata?: RuntimeCallOptions['metadata'];
    signal?: AbortSignal;
}): RuntimeStreamCallOptions;
//# sourceMappingURL=helpers.d.ts.map