import type { Message } from '@bufbuild/protobuf'; import type { GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2'; import type { Duration, DurationJson } from '@bufbuild/protobuf/wkt'; /** * Describes the file capabilities/networking/http/v1alpha/client.proto. */ export declare const file_capabilities_networking_http_v1alpha_client: GenFile; /** * CacheSettings defines cache control options for outbound HTTP requests. * * @generated from message capabilities.networking.http.v1alpha.CacheSettings */ export type CacheSettings = Message<'capabilities.networking.http.v1alpha.CacheSettings'> & { /** * If true, cache the response. * * @generated from field: bool store = 1; */ store: boolean; /** * Maximum age of a cached response. If zero, do not attempt to read from cache * * @generated from field: google.protobuf.Duration max_age = 2; */ maxAge?: Duration; }; /** * CacheSettings defines cache control options for outbound HTTP requests. * * @generated from message capabilities.networking.http.v1alpha.CacheSettings */ export type CacheSettingsJson = { /** * If true, cache the response. * * @generated from field: bool store = 1; */ store?: boolean; /** * Maximum age of a cached response. If zero, do not attempt to read from cache * * @generated from field: google.protobuf.Duration max_age = 2; */ maxAge?: DurationJson; }; /** * Describes the message capabilities.networking.http.v1alpha.CacheSettings. * Use `create(CacheSettingsSchema)` to create a new message. */ export declare const CacheSettingsSchema: GenMessage; /** * HeaderValues represents multiple values for a single header key * * @generated from message capabilities.networking.http.v1alpha.HeaderValues */ export type HeaderValues = Message<'capabilities.networking.http.v1alpha.HeaderValues'> & { /** * @generated from field: repeated string values = 1; */ values: string[]; }; /** * HeaderValues represents multiple values for a single header key * * @generated from message capabilities.networking.http.v1alpha.HeaderValues */ export type HeaderValuesJson = { /** * @generated from field: repeated string values = 1; */ values?: string[]; }; /** * Describes the message capabilities.networking.http.v1alpha.HeaderValues. * Use `create(HeaderValuesSchema)` to create a new message. */ export declare const HeaderValuesSchema: GenMessage; /** * @generated from message capabilities.networking.http.v1alpha.Request */ export type Request = Message<'capabilities.networking.http.v1alpha.Request'> & { /** * @generated from field: string url = 1; */ url: string; /** * @generated from field: string method = 2; */ method: string; /** * Deprecated: use multi_headers * * @generated from field: map headers = 3 [deprecated = true]; * @deprecated */ headers: { [key: string]: string; }; /** * @generated from field: bytes body = 4; */ body: Uint8Array; /** * Request timeout duration * * @generated from field: google.protobuf.Duration timeout = 5; */ timeout?: Duration; /** * @generated from field: capabilities.networking.http.v1alpha.CacheSettings cache_settings = 6; */ cacheSettings?: CacheSettings; /** * @generated from field: map multi_headers = 7; */ multiHeaders: { [key: string]: HeaderValues; }; }; /** * @generated from message capabilities.networking.http.v1alpha.Request */ export type RequestJson = { /** * @generated from field: string url = 1; */ url?: string; /** * @generated from field: string method = 2; */ method?: string; /** * Deprecated: use multi_headers * * @generated from field: map headers = 3 [deprecated = true]; * @deprecated */ headers?: { [key: string]: string; }; /** * @generated from field: bytes body = 4; */ body?: string; /** * Request timeout duration * * @generated from field: google.protobuf.Duration timeout = 5; */ timeout?: DurationJson; /** * @generated from field: capabilities.networking.http.v1alpha.CacheSettings cache_settings = 6; */ cacheSettings?: CacheSettingsJson; /** * @generated from field: map multi_headers = 7; */ multiHeaders?: { [key: string]: HeaderValuesJson; }; }; /** * Describes the message capabilities.networking.http.v1alpha.Request. * Use `create(RequestSchema)` to create a new message. */ export declare const RequestSchema: GenMessage; /** * @generated from message capabilities.networking.http.v1alpha.Response */ export type Response = Message<'capabilities.networking.http.v1alpha.Response'> & { /** * @generated from field: uint32 status_code = 1; */ statusCode: number; /** * Deprecated: use multi_headers * * @generated from field: map headers = 2 [deprecated = true]; * @deprecated */ headers: { [key: string]: string; }; /** * @generated from field: bytes body = 3; */ body: Uint8Array; /** * @generated from field: map multi_headers = 4; */ multiHeaders: { [key: string]: HeaderValues; }; }; /** * @generated from message capabilities.networking.http.v1alpha.Response */ export type ResponseJson = { /** * @generated from field: uint32 status_code = 1; */ statusCode?: number; /** * Deprecated: use multi_headers * * @generated from field: map headers = 2 [deprecated = true]; * @deprecated */ headers?: { [key: string]: string; }; /** * @generated from field: bytes body = 3; */ body?: string; /** * @generated from field: map multi_headers = 4; */ multiHeaders?: { [key: string]: HeaderValuesJson; }; }; /** * Describes the message capabilities.networking.http.v1alpha.Response. * Use `create(ResponseSchema)` to create a new message. */ export declare const ResponseSchema: GenMessage; /** * @generated from service capabilities.networking.http.v1alpha.Client */ export declare const Client: GenService<{ /** * @generated from rpc capabilities.networking.http.v1alpha.Client.SendRequest */ sendRequest: { methodKind: 'unary'; input: typeof RequestSchema; output: typeof ResponseSchema; }; }>;