export interface ServerResponseModel {
    messageId: number;
    hasError: boolean;
    data: any;
}
interface Task {
    taskId: string;
    messageId: number;
}
export interface TaskQueueItem extends Task {
    method: string;
    params: any[];
    userContext: {
        id_user?: string;
        user?: string;
        id_ws?: string;
    };
    queuedAt?: number;
    dispatchedAt?: number;
}
export interface TaskPayload extends TaskQueueItem {
    type: 'task';
}
export interface TaskResponse extends Task {
    type: 'taskComplete';
    error: boolean;
    result: any;
    packedResult?: Uint8Array | Buffer;
    encoding?: 'msgpack' | 'json';
    meta?: any;
}
export {};
