import { APIResource } from "../../../core/resource.mjs"; import { APIPromise } from "../../../core/api-promise.mjs"; import { RequestOptions } from "../../../internal/request-options.mjs"; export declare class BaseMetadata extends APIResource { static readonly _key: readonly ['kv', 'namespaces', 'metadata']; /** * Returns the metadata associated with the given key in the given namespace. Use * URL-encoding to use special characters (for example, `:`, `!`, `%`) in the key * name. * * @example * ```ts * const metadata = await client.kv.namespaces.metadata.get( * 'My-Key', * { * account_id: '023e105f4ecef8ad9ca31a8372d0c353', * namespace_id: '0f2ac74b498b48028cb68387c421e279', * }, * ); * ``` */ get(keyName: string, params: MetadataGetParams, options?: RequestOptions): APIPromise; } export declare class Metadata extends BaseMetadata { } /** * Arbitrary JSON that is associated with a key. */ export type MetadataGetResponse = unknown; export interface MetadataGetParams { /** * Identifier. */ account_id: string; /** * Namespace identifier tag. */ namespace_id: string; } export declare namespace Metadata { export { type MetadataGetResponse as MetadataGetResponse, type MetadataGetParams as MetadataGetParams }; } //# sourceMappingURL=metadata.d.mts.map