import { KosBroadcastRequest, KosFetchReqeust, KosFetchResponseParams, KosMessageOptions, KosHttpMessageOptions, KosMessageRequest } from '../types';
/**
 * @kosService core.fetch
 * @kosApiLevel 2
 */
export declare const createStudioMessage: ({ path, requestId, method, destinationAddress, }: KosFetchReqeust) => string;
/**
 * @kosService core.fetch
 * @kosApiLevel 2
 */
export declare const createFosBaseMessage: ({ path, requestId, method, destinationAddress, ordered, tracker, }: KosFetchReqeust) => string;
/**
 * @kosService core.fetch
 * @kosApiLevel 2
 */
export declare const createBaseMessage: ({ path, requestId, method, destinationAddress, ordered, tracker, bridge, headers, }: KosFetchReqeust) => string;
/**
 * @kosService core.fetch
 * @kosApiLevel 2
 */
export declare const createMessageBody: (msg: string, body?: string) => string;
/**
 * @kosService core.fetch
 * @kosApiLevel 2
 */
export declare function createHeaders(headers: Record<string, string>): Headers;
/**
 * @kosService core.fetch
 * @kosApiLevel 2
 */
export declare function createReadableStream(msg: string): ReadableStream<Uint8Array> | null;
/**
 * @kosService core.fetch
 * @kosApiLevel 2
 */
export declare const createStudioMessageRequest: ({ path, requestId, destinationAddress, }: KosFetchReqeust) => string;
/**
 * @kosService core.fetch
 * @kosApiLevel 2
 */
export declare const createKosMessage: ({ requestId, destinationAddress, requestType, headers, }: KosMessageRequest) => string;
/**
 * @kosService core.fetch
 * @kosApiLevel 2
 */
export declare const sendKosMessage: <T extends object>(msg: T, options: KosMessageRequest) => void;
/**
 * @kosService core.fetch
 * @kosApiLevel 2
 */
export declare const createStudioMessageResponse: ({ path, responseId, status, destinationAddress, }: KosFetchResponseParams) => string;
/**
 * @kosService core.fetch
 * @kosApiLevel 2
 */
export declare const sendStudioMessageRequest: <T extends object>(msg: T, options: KosFetchReqeust) => void;
/**
 * @kosService core.fetch
 * @kosApiLevel 2
 */
export declare const sendStudioMessage: <T extends object>(msg: T, options: KosFetchResponseParams) => void;
/**
 * @kosService core.fetch
 * @kosApiLevel 2
 */
export declare const createBroadcastMessageResponse: ({ topic, }: KosBroadcastRequest) => string;
/**
 * @kosService core.fetch
 * @kosApiLevel 2
 */
export declare const createKosHtpMessageResponse: ({ responseId, destinationAddress, type, sourceAddress, status, }: KosHttpMessageOptions) => string;
/**
 * @kosService core.fetch
 * @kosApiLevel 2
 */
export declare const createKosMessageResponse: ({ topic, responseId, destinationAddress, type, }: KosMessageOptions) => string;
/**
 * @kosService core.fetch
 * @kosApiLevel 2
 */
export interface KosBroadcastRequestParams<T extends object> {
    msg: T;
    options: KosBroadcastRequest;
}
/**
 * @kosService core.fetch
 * @kosApiLevel 2
 */
export declare const sendBroadcastMessage: <T extends object>({ msg, options, }: KosBroadcastRequestParams<T>) => void;
/**
 * @kosService core.fetch
 * @kosApiLevel 2
 */
export interface KosMessageResponseParams<T extends object> {
    msg: T;
    options: KosMessageOptions;
}
/**
 * @kosService core.fetch
 * @kosApiLevel 2
 */
export interface KosHttpMessageResponseParams<T extends object> {
    msg: T;
    options: KosHttpMessageOptions;
}
/**
 * @kosService core.fetch
 * @kosApiLevel 2
 */
export declare const sendKosMessageResponse: <T extends object>({ msg, options, }: KosMessageResponseParams<T>) => void;
/**
 * @kosService core.fetch
 * @kosApiLevel 2
 */
export declare const sendKosHttpMessageResponse: <T extends object>({ msg, options, }: KosHttpMessageResponseParams<T>) => void;
/**
 * @kosService core.fetch
 * @kosApiLevel 2
 */
export declare const getMessageBody: (payload: any, skipParse: any) => any;
//# sourceMappingURL=kos-message-utils.d.ts.map