import type { Ipc } from "../../ipc.js"; export declare const PURE_CHANNEL_EVENT_PREFIX = "\u00A7-"; export declare const INCOME: "pureChannel.income"; export declare const OUTGOING: "pureChannel.outgoing"; export declare class PureChannel { #private; constructor(income?: any, outgoing?: any); private _startLock; afterStart(): any; start: any; close(): void; /**转换输入输出 */ reverse(): PureChannel; } export declare enum PureFrameType { Text = 0, Binary = 1 } export type $PureFrame = PureTextFrame | PureBinaryFrame; export declare class PureFrame { readonly type: T; constructor(type: T); } export declare class PureTextFrame extends PureFrame { readonly data: string; constructor(data: string); } export declare class PureBinaryFrame extends PureFrame { readonly data: Uint8Array; constructor(data: Uint8Array); } export declare const ipcEventToPureFrame: (event: OrderBy) => PureTextFrame | PureBinaryFrame | undefined; export declare const pureFrameToIpcEvent: (eventName: string, pureFrame: $PureFrame, orderBy?: number) => any; export declare const pureChannelToIpcEvent: (channelIpc: Ipc, pureChannel: PureChannel, debugTag: string) => Promise; //# sourceMappingURL=PureChannel.d.ts.map