import type { GenericMessageReply } from '../core/message-reply.js';
import type { DwnInterfaceName, DwnMethodName } from '../core/message.js';
import type { GenericMessage, QueryResultEntry } from './message-types.js';
export declare type ProtocolsConfigureDescriptor = {
    interface: DwnInterfaceName.Protocols;
    method: DwnMethodName.Configure;
    messageTimestamp: string;
    definition: ProtocolDefinition;
};
export declare type ProtocolDefinition = {
    protocol: string;
    types: ProtocolTypes;
    structure: {
        [key: string]: ProtocolRuleSet;
    };
};
export declare type ProtocolType = {
    schema?: string;
    dataFormats?: string[];
};
export declare type ProtocolTypes = {
    [key: string]: ProtocolType;
};
export declare enum ProtocolActor {
    Anyone = "anyone",
    Author = "author",
    Recipient = "recipient"
}
export declare enum ProtocolAction {
    Read = "read",
    Write = "write"
}
export declare type ProtocolActionRule = {
    who: string;
    of?: string;
    can: string;
};
export declare type ProtocolRuleSet = {
    $actions?: ProtocolActionRule[];
    [key: string]: any;
};
export declare type ProtocolsConfigureMessage = GenericMessage & {
    descriptor: ProtocolsConfigureDescriptor;
};
export declare type ProtocolsQueryFilter = {
    protocol: string;
};
export declare type ProtocolsQueryDescriptor = {
    interface: DwnInterfaceName.Protocols;
    method: DwnMethodName.Query;
    messageTimestamp: string;
    filter?: ProtocolsQueryFilter;
};
export declare type ProtocolsQueryMessage = GenericMessage & {
    descriptor: ProtocolsQueryDescriptor;
};
export declare type ProtocolsQueryReply = GenericMessageReply & {
    entries?: QueryResultEntry[];
};
//# sourceMappingURL=protocols-types.d.ts.map