import type { CharacterInfo, ChatMessage, ChatMessageParams, TTSParams, TTSResponse } from '@/types';
import { IResultData } from './interface';
import { CancelTokenSource } from 'axios';
type SSEInstance = {
    close: () => void;
    addEventListener: (type: string, listener: (event: any) => void) => void;
    onerror?: (event: any) => void;
    onabort?: (event: any) => void;
    onreadystatechange?: (event: any) => void;
};
export declare const abortAll: () => void;
export declare const fetchFloat32Array: (url?: string, params?: {}, isMulti?: boolean) => Promise<Float32Array>;
export type Text2SpeechParams = {
    role?: string;
    speed?: number;
    sn?: number;
    model?: 'paddle2' | 'paddle' | 'azure';
    viseme?: 'a2f' | 'azure' | 'none' | 'qt' | 'ovr';
    smooth_method?: number;
    smooth_interations?: number;
};
export declare const getCharacterInfoApi: (id: string) => Promise<IResultData<CharacterInfo>>;
export declare const apiAsk: (characterId: string, params: ChatMessageParams, callback?: (res: IResultData<ChatMessage>) => void) => Promise<void>;
export declare const apiText2Speech: (characterId: string, params: TTSParams) => Promise<IResultData<TTSResponse>>;
export declare const getFetchSource: () => (SSEInstance | AbortController | CancelTokenSource)[];
export declare const getGatewayTokenApi: () => Promise<IResultData<string>>;
export {};
//# sourceMappingURL=human.d.ts.map