import * as capnp from "capnp-ts"; import { Struct } from "capnp-ts"; //#region src/messages.capnp.d.ts declare const _capnpFileId: bigint; interface Metadata_Shape { version?: number; timestamp?: bigint | number | string; changeset?: number; uid?: number; user?: string; } interface Metadata_Json { version: number; timestamp: string; changeset: number; uid: number; user: string; } declare class Metadata extends Struct { static readonly _capnp: { displayName: string; id: string; size: capnp.ObjectSize; }; getVersion(): number; setVersion(value: number): void; get version(): number; set version(value: number); getTimestamp(): bigint; setTimestamp(value: bigint): void; get timestamp(): bigint; set timestamp(value: bigint | number | string); getChangeset(): number; setChangeset(value: number): void; get changeset(): number; set changeset(value: number); getUid(): number; setUid(value: number): void; get uid(): number; set uid(value: number); getUser(): string; setUser(value: string): void; get user(): string; set user(value: string); set(value: Metadata_Shape): void; get(): Metadata_Json; toJSON(): Metadata_Json; toString(): string; } declare namespace Metadata { type Json = Metadata_Json; type Shape = Metadata_Shape; } interface Node_Shape { tags?: readonly string[]; metadata?: Metadata_Shape; } interface Node_Json { tags?: string[]; metadata?: Metadata_Json; } declare class Node extends Struct { static readonly _capnp: { displayName: string; id: string; size: capnp.ObjectSize; }; adoptTags(value: capnp.Orphan>): void; disownTags(): capnp.Orphan>; getTags(): capnp.List; hasTags(): boolean; initTags(length: number): capnp.List; setTags(value: capnp.List): void; get tags(): capnp.List; set tags(value: capnp.List | readonly string[]); adoptMetadata(value: capnp.Orphan): void; disownMetadata(): capnp.Orphan; getMetadata(): Metadata; hasMetadata(): boolean; initMetadata(): Metadata; setMetadata(value: Metadata): void; get metadata(): Metadata; set metadata(value: Metadata | Metadata_Shape); set(value: Node_Shape): void; get(): Node_Json; toJSON(): Node_Json; toString(): string; } declare namespace Node { type Json = Node_Json; type Shape = Node_Shape; } interface Way_Shape { nodes?: readonly (bigint | number | string)[]; tags?: readonly string[]; metadata?: Metadata_Shape; } interface Way_Json { nodes?: string[]; tags?: string[]; metadata?: Metadata_Json; } declare class Way extends Struct { static readonly _capnp: { displayName: string; id: string; size: capnp.ObjectSize; }; adoptNodes(value: capnp.Orphan>): void; disownNodes(): capnp.Orphan>; getNodes(): capnp.List; hasNodes(): boolean; initNodes(length: number): capnp.List; setNodes(value: capnp.List): void; get nodes(): capnp.List; set nodes(value: capnp.List | readonly (bigint | number | string)[]); adoptTags(value: capnp.Orphan>): void; disownTags(): capnp.Orphan>; getTags(): capnp.List; hasTags(): boolean; initTags(length: number): capnp.List; setTags(value: capnp.List): void; get tags(): capnp.List; set tags(value: capnp.List | readonly string[]); adoptMetadata(value: capnp.Orphan): void; disownMetadata(): capnp.Orphan; getMetadata(): Metadata; hasMetadata(): boolean; initMetadata(): Metadata; setMetadata(value: Metadata): void; get metadata(): Metadata; set metadata(value: Metadata | Metadata_Shape); set(value: Way_Shape): void; get(): Way_Json; toJSON(): Way_Json; toString(): string; } declare namespace Way { type Json = Way_Json; type Shape = Way_Shape; } declare enum RelationMember_Type { NODE = 0, WAY = 1, RELATION = 2 } interface RelationMember_Shape { ref?: bigint | number | string; type?: RelationMember_Type; role?: string; } interface RelationMember_Json { ref: string; type: RelationMember_Type; role: string; } declare class RelationMember extends Struct { static readonly _capnp: { displayName: string; id: string; size: capnp.ObjectSize; }; getRef(): bigint; setRef(value: bigint): void; get ref(): bigint; set ref(value: bigint | number | string); getType(): RelationMember_Type; setType(value: RelationMember_Type): void; get type(): RelationMember_Type; set type(value: RelationMember_Type); getRole(): string; setRole(value: string): void; get role(): string; set role(value: string); set(value: RelationMember_Shape): void; get(): RelationMember_Json; toJSON(): RelationMember_Json; toString(): string; } declare namespace RelationMember { type Json = RelationMember_Json; type Shape = RelationMember_Shape; export import Type = RelationMember_Type; } interface Relation_Shape { tags?: readonly string[]; members?: readonly RelationMember_Shape[]; metadata?: Metadata_Shape; } interface Relation_Json { tags?: string[]; members?: RelationMember_Json[]; metadata?: Metadata_Json; } declare class Relation extends Struct { static readonly _capnp: { displayName: string; id: string; size: capnp.ObjectSize; }; static _Members: capnp.ListCtor; adoptTags(value: capnp.Orphan>): void; disownTags(): capnp.Orphan>; getTags(): capnp.List; hasTags(): boolean; initTags(length: number): capnp.List; setTags(value: capnp.List): void; get tags(): capnp.List; set tags(value: capnp.List | readonly string[]); adoptMembers(value: capnp.Orphan>): void; disownMembers(): capnp.Orphan>; getMembers(): capnp.List; hasMembers(): boolean; initMembers(length: number): capnp.List; setMembers(value: capnp.List): void; get members(): capnp.List; set members(value: capnp.List | readonly RelationMember_Shape[]); adoptMetadata(value: capnp.Orphan): void; disownMetadata(): capnp.Orphan; getMetadata(): Metadata; hasMetadata(): boolean; initMetadata(): Metadata; setMetadata(value: Metadata): void; get metadata(): Metadata; set metadata(value: Metadata | Metadata_Shape); set(value: Relation_Shape): void; get(): Relation_Json; toJSON(): Relation_Json; toString(): string; } declare namespace Relation { type Json = Relation_Json; type Shape = Relation_Shape; } //#endregion export { Metadata, Metadata_Json, Metadata_Shape, Node, Node_Json, Node_Shape, Relation, RelationMember, RelationMember_Json, RelationMember_Shape, RelationMember_Type, Relation_Json, Relation_Shape, Way, Way_Json, Way_Shape, _capnpFileId };