export declare enum CortexProtocolMessageType {
    Context = "context",
    Fetch = "fetch"
}
export interface IPluginMessage {
    type: CortexProtocolMessageType;
}
export declare enum PluginContextLocation {
    Entity = "ENTITY",
    Global = "GLOBAL"
}
export interface ProxyFetchRequestMessage extends IPluginMessage {
    init?: RequestInit;
    input: RequestInfo;
    type: CortexProtocolMessageType.Fetch;
}
export interface GetContextRequestMessage extends IPluginMessage {
    type: CortexProtocolMessageType.Context;
}
type PluginMessage = ProxyFetchRequestMessage | GetContextRequestMessage;
export declare function postCortexMessage<T>(message: PluginMessage): Promise<T>;
export {};
