/** * This file has been automatically generated by the [capnpc-ts utility](https://github.com/jdiaz5513/capnp-ts). */ import * as capnp from "../index"; import { Struct as __S } from '../index'; export declare const _capnpFileId: bigint; export interface Persistent_SaveParams_Shape { } export interface Persistent_SaveParams_Json { } export declare class Persistent_SaveParams extends __S { static readonly _capnp: { displayName: string; id: string; size: capnp.ObjectSize; }; adoptSealFor(value: capnp.Orphan): void; disownSealFor(): capnp.Orphan; getSealFor(ctor?: capnp.StructCtor): R; hasSealFor(): boolean; initSealFor(ctor?: capnp.StructCtor): R; setSealFor(value: Owner): void; get sealFor(): Owner; set sealFor(value: Owner); set(_value: Persistent_SaveParams_Shape): void; get(): Persistent_SaveParams_Json; toJSON(): Persistent_SaveParams_Json; toString(): string; } export declare namespace Persistent_SaveParams { type Json = Persistent_SaveParams_Json; type Shape = Persistent_SaveParams_Shape; } export interface Persistent_SaveResults_Shape { } export interface Persistent_SaveResults_Json { } export declare class Persistent_SaveResults extends __S { static readonly _capnp: { displayName: string; id: string; size: capnp.ObjectSize; }; adoptSturdyRef(value: capnp.Orphan): void; disownSturdyRef(): capnp.Orphan; getSturdyRef(ctor?: capnp.StructCtor): R; hasSturdyRef(): boolean; initSturdyRef(ctor?: capnp.StructCtor): R; setSturdyRef(value: SturdyRef): void; get sturdyRef(): SturdyRef; set sturdyRef(value: SturdyRef); set(_value: Persistent_SaveResults_Shape): void; get(): Persistent_SaveResults_Json; toJSON(): Persistent_SaveResults_Json; toString(): string; } export declare namespace Persistent_SaveResults { type Json = Persistent_SaveResults_Json; type Shape = Persistent_SaveResults_Shape; } export declare class Persistent_Client { static readonly interfaceId: bigint; readonly bindings: [capnp.StructCtor, capnp.StructCtor]; readonly client: capnp.Client; readonly methods: [ capnp.Method, Persistent_SaveResults> ]; constructor(client: capnp.Client, bindings: [capnp.StructCtor, capnp.StructCtor]); save(params?: ((params: Persistent_SaveParams) => void) | Persistent_SaveParams_Shape): capnp.RemotePromise>; dispose(): void; [Symbol.dispose](): void; } export interface Persistent_ServerTarget { save: capnp.ServerMethodImpl, Persistent_SaveResults>; } export declare class Persistent_Server extends capnp.Server { constructor(target: Persistent_ServerTarget, bindings?: [capnp.StructCtor, capnp.StructCtor]); } export type Persistent_Ref = Persistent_Client | Persistent_Server; export declare class Persistent extends __S { static readonly _capnp: { displayName: string; id: string; size: capnp.ObjectSize; }; toString(): string; } export declare namespace Persistent { const Client: typeof Persistent_Client; type Client = Persistent_Client; type Ref = Persistent_Ref; export import SaveParams = Persistent_SaveParams; export import SaveResults = Persistent_SaveResults; const Server: typeof Persistent_Server; type Server = Persistent_Server; }