import type { RuntimeEventDomain } from '../runtime/events/index.js';
export type GatewayMethodTransport = 'http' | 'ws' | 'internal';
export type GatewayMethodSource = 'builtin' | 'plugin';
export type GatewayMethodAccess = 'public' | 'authenticated' | 'admin' | 'remote-peer';
export type GatewayEventTransport = 'sse' | 'ws' | 'internal';
export interface GatewayHttpBinding {
    readonly method: 'GET' | 'POST' | 'PATCH' | 'DELETE';
    readonly path: string;
}
export interface GatewayMethodDescriptor {
    readonly id: string;
    readonly title: string;
    readonly description: string;
    readonly category: string;
    readonly source: GatewayMethodSource;
    readonly access: GatewayMethodAccess;
    readonly transport: readonly GatewayMethodTransport[];
    readonly scopes: readonly string[];
    readonly http?: GatewayHttpBinding;
    readonly events?: readonly string[];
    readonly inputSchema?: Record<string, unknown>;
    readonly outputSchema?: Record<string, unknown>;
    readonly pluginId?: string;
    readonly dangerous?: boolean;
    readonly invokable?: boolean;
    readonly metadata?: Record<string, unknown>;
}
export interface GatewayEventDescriptor {
    readonly id: string;
    readonly title: string;
    readonly description: string;
    readonly category: string;
    readonly source: GatewayMethodSource;
    readonly transport: readonly GatewayEventTransport[];
    readonly scopes: readonly string[];
    readonly domains?: readonly RuntimeEventDomain[];
    readonly wireEvents?: readonly string[];
    readonly outputSchema?: Record<string, unknown>;
    readonly pluginId?: string;
    readonly metadata?: Record<string, unknown>;
}
export interface GatewayMethodInvocationContext {
    readonly principalId?: string;
    readonly principalKind?: 'user' | 'bot' | 'service' | 'token' | 'remote-peer';
    readonly admin?: boolean;
    readonly scopes?: readonly string[];
    readonly clientKind?: string;
    readonly authToken?: string;
    readonly metadata?: Record<string, unknown>;
}
export interface GatewayMethodInvocation {
    readonly body?: unknown;
    readonly query?: Record<string, unknown>;
    readonly context: GatewayMethodInvocationContext;
}
export type GatewayMethodHandler = (input: GatewayMethodInvocation) => unknown | Promise<unknown>;
export interface GatewayMethodListOptions {
    readonly category?: string;
    readonly source?: GatewayMethodSource;
    readonly pluginId?: string;
}
export interface GatewayEventListOptions {
    readonly category?: string;
    readonly source?: GatewayMethodSource;
    readonly pluginId?: string;
    readonly domain?: RuntimeEventDomain;
}
export declare const EMPTY_OBJECT_SCHEMA: {
    readonly type: "object";
    readonly properties: {};
    readonly additionalProperties: false;
};
export declare const STRING_SCHEMA: {
    readonly type: "string";
};
export declare const BOOLEAN_SCHEMA: {
    readonly type: "boolean";
};
export declare const NUMBER_SCHEMA: {
    readonly type: "number";
};
export declare const JSON_VALUE_SCHEMA: Record<string, unknown>;
export declare const JSON_OBJECT_SCHEMA: Record<string, unknown>;
export declare const JSON_ARRAY_SCHEMA: Record<string, unknown>;
export declare function arraySchema(itemSchema: Record<string, unknown>): Record<string, unknown>;
export declare function objectSchema(properties: Record<string, Record<string, unknown>>, required?: readonly string[], options?: {
    readonly additionalProperties?: boolean;
}): Record<string, unknown>;
export declare const GATEWAY_HTTP_BINDING_SCHEMA: Record<string, unknown>;
export declare const METHOD_DESCRIPTOR_SCHEMA: Record<string, unknown>;
export declare const EVENT_DESCRIPTOR_SCHEMA: Record<string, unknown>;
export declare function listOutputSchema(key: string, itemSchema: Record<string, unknown>): Record<string, unknown>;
export declare function entityOutputSchema(key: string, entitySchema: Record<string, unknown>): Record<string, unknown>;
export declare function actionResultOutputSchema(key: string, entitySchema: Record<string, unknown>): Record<string, unknown>;
export declare function bodyEnvelopeSchema(properties?: Record<string, Record<string, unknown>>, required?: readonly string[]): Record<string, unknown>;
export declare function methodDescriptor(input: Omit<GatewayMethodDescriptor, 'source' | 'transport' | 'access'> & Partial<Pick<GatewayMethodDescriptor, 'source' | 'transport' | 'access'>>): GatewayMethodDescriptor;
export declare function eventDescriptor(input: Omit<GatewayEventDescriptor, 'source'> & Partial<Pick<GatewayEventDescriptor, 'source'>>): GatewayEventDescriptor;
export declare function runtimeEventId(domain: RuntimeEventDomain): string;
export declare function runtimeDomainEvent(domain: RuntimeEventDomain, description: string): GatewayEventDescriptor;
//# sourceMappingURL=method-catalog-shared.d.ts.map