import { type Field } from "./field.js";
export declare function NewFieldsList(...fields: Field[]): FieldsList;
export declare class FieldsList extends Array<Field> {
    Clone(): FieldsList;
    FieldNames(): string[];
    AsMap(): Record<string, Field>;
    GetById(fieldId: string): Field | null;
    GetByName(fieldName: string): Field | null;
    RemoveById(fieldId: string): void;
    RemoveByName(fieldName: string): void;
    Add(...fields: Field[]): void;
    AddAt(pos: number, ...fields: Field[]): void;
    AddMarshaledJSON(rawJSON: string | Uint8Array | null | undefined): Error | null;
    AddMarshaledJSONAt(pos: number, rawJSON: string | Uint8Array | null | undefined): Error | null;
    String(): string;
    MarshalJSON(): string;
    UnmarshalJSON(rawJSON: string | Uint8Array): Error | null;
    Value(): string;
    Scan(value: unknown): Error | null;
    toJSON(): Record<string, unknown>[];
    static fromJSON(rawJSON: string | Uint8Array): FieldsList;
    unmarshalJSON(rawJSON: string | Uint8Array): void;
    private add;
}
