import type { StructType } from './struct.js'; import { type DecodeContext, type RTError, Type } from './type.js'; import { type Result } from './utils.js'; export declare class KeyOfType extends Type { struct: StructType; constructor(struct: StructType); print(): string; decode(u: unknown, _opts: DecodeContext): import("./utils.js").Err | import("./utils.js").Ok; validate(v: keyof T, opts: DecodeContext): Promise>; validateSync(v: keyof T, opts: DecodeContext): Result; in(...list: (keyof T)[]): this; } export declare function keyOf(struct: StructType): KeyOfType;