import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; import Long from "long"; import type { CallContext, CallOptions } from "nice-grpc-common"; import { Empty } from "./grpc_controller"; export declare const protobufPackage = "plugin"; /** * go-plugin GRPCStdio service – required to avoid "method not found" errors. * The host expects this to be present; we serve it but return nothing. */ export interface StdioData { channel: StdioData_Channel; data: Uint8Array; } export declare enum StdioData_Channel { INVALID = 0, STDOUT = 1, STDERR = 2, UNRECOGNIZED = -1 } export declare function stdioData_ChannelFromJSON(object: any): StdioData_Channel; export declare function stdioData_ChannelToJSON(object: StdioData_Channel): string; export declare const StdioData: MessageFns; export interface GRPCStdioServiceImplementation { /** * StreamStdio returns a stream that the plugin uses to send stdout/stderr * data back to the host. The host sends an initial empty request. */ streamStdio(request: Empty, context: CallContext & CallContextExt): ServerStreamingMethodResult>; } export interface GRPCStdioClient { /** * StreamStdio returns a stream that the plugin uses to send stdout/stderr * data back to the host. The host sends an initial empty request. */ streamStdio(request: DeepPartial, options?: CallOptions & CallOptionsExt): AsyncIterable; } type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & { [K in Exclude>]: never; }; export type ServerStreamingMethodResult = { [Symbol.asyncIterator](): AsyncIterator; }; export interface MessageFns { encode(message: T, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): T; fromJSON(object: any): T; toJSON(message: T): unknown; create, I>>(base?: I): T; fromPartial, I>>(object: I): T; } export {}; //# sourceMappingURL=grpc_stdio.d.ts.map