/** * @author jdiaz5513 */ import { Segment } from "../segment"; import { Pointer } from "./pointer"; import type { Client } from "../../rpc/client"; /** * A capability (interface) pointer: an index into the containing message's cap table. */ export declare class Interface extends Pointer { static readonly _capnp: { displayName: string; }; static readonly fromPointer: typeof fromPointer; static readonly getCapId: typeof getCapId; static readonly getClient: typeof getClient; static readonly isInterface: typeof isInterface; constructor(segment: Segment, byteOffset: number, depthLimit?: number); getCapId(): number; getClient(): Client | null; toString(): string; } export declare function fromPointer(p: Pointer): Interface | null; /** The capability ID of this pointer, or -1 if it is not a capability pointer. */ export declare function getCapId(i: Pointer): number; /** Look up this capability pointer's client in the message's cap table. */ export declare function getClient(i: Pointer): Client | null; export declare function isInterface(p: Pointer): boolean;