import { fromBase64 as bytesFromBase64, toBase64 as base64FromBytes } from "@interchainjs/encoding"; //#region src/helpers.d.ts interface AminoHeight { readonly revision_number?: string; readonly revision_height?: string; } declare function omitDefault(input: T): T | undefined; interface Duration { /** * Signed seconds of the span of time. Must be from -315,576,000,000 * to +315,576,000,000 inclusive. Note: these bounds are computed from: * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years */ seconds: bigint; /** * Signed fractions of a second at nanosecond resolution of the span * of time. Durations less than one second are represented with a 0 * `seconds` field and a positive or negative `nanos` field. For durations * of one second or more, a non-zero value for the `nanos` field must be * of the same sign as the `seconds` field. Must be from -999,999,999 * to +999,999,999 inclusive. */ nanos: number; } declare function toDuration(duration: string): Duration; declare function fromDuration(duration: Duration): string; declare function isSet(value: any): boolean; declare function isObject(value: any): boolean; interface PageRequest { key: Uint8Array; offset: bigint; limit: bigint; countTotal: boolean; reverse: boolean; } interface PageRequestParams { 'pagination.key'?: string; 'pagination.offset'?: string; 'pagination.limit'?: string; 'pagination.count_total'?: boolean; 'pagination.reverse'?: boolean; } interface Params { params: PageRequestParams; } declare const setPaginationParams: (options: Params, pagination?: PageRequest) => Params; type Builtin = Date | Function | Uint8Array | string | number | bigint | boolean | undefined; type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial } : Partial; type KeysOfUnion = T extends T ? keyof T : never; type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact } & Record>, never>; interface Rpc { request(service: string, method: string, data: Uint8Array): Promise; } declare function isRpc(rpc: unknown): rpc is Rpc; interface Timestamp { /** * Represents seconds of UTC time since Unix epoch * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to * 9999-12-31T23:59:59Z inclusive. */ seconds: bigint; /** * Non-negative fractions of a second at nanosecond resolution. Negative * second values with fractions must still have non-negative nanos values * that count forward in time. Must be from 0 to 999,999,999 * inclusive. */ nanos: number; } declare function toTimestamp(date: Date): Timestamp; declare function fromTimestamp(t: Timestamp): Date; declare function fromJsonTimestamp(o: any): Timestamp; //#endregion export { AminoHeight, DeepPartial, Exact, PageRequest, PageRequestParams, Params, Rpc, base64FromBytes, bytesFromBase64, fromDuration, fromJsonTimestamp, fromTimestamp, isObject, isRpc, isSet, omitDefault, setPaginationParams, toDuration, toTimestamp };