/**
 * File was automatically generated using json-schema-to-typescript.
 * DO NOT MODIFY IT BY HAND.
 * Instead, modify the source file https://formats.openag.io/oada/websockets/response.schema.json of @oada/formats
 * and run `$ yarn build` to regenerate this file.
 */
/**
 * $id of the source schema
 * @see {@link https://formats.openag.io/oada/websockets/response.schema.json}
 */
export declare const $id = "https://formats.openag.io/oada/websockets/response.schema.json";
/**
 * Returns true if val is a @type Response, false otherwise
 */
export declare function is(val: any): val is Response;
/**
 * Asserts that val is a @type Response
 */
export declare function assert(val: any): asserts val is Response;
export default Response;
/**
 * This interface was referenced by `Response`'s JSON-Schema
 * via the `definition` "id".
 */
export declare type Id = string;
/**
 * This is the format of an OADA websocket response (server to client)
 */
export interface Response {
    /**
     * Array of request IDs to which this response pertains. A single string is supported only for legacy purposes.
     */
    requestId: [Id, ...Id[]] | Id;
    status: number;
    statusText?: string;
    headers?: {
        [k: string]: string;
    };
    /**
     * _id identifies a resource in the OADA API.
     */
    resourceId?: string;
    resource?: {
        [k: string]: unknown;
    };
    /**
     * The optional data payload of the request
     */
    data?: {
        [k: string]: unknown;
    };
    [k: string]: unknown;
}
//# sourceMappingURL=response.d.ts.map