/** Canonical readonly spelling. Each edit preserves the current layer's contract. */ import type { TypeDeclaration, TypeSyntax } from "../../ast.ts"; import type { DiagnosticFix } from "../../diagnostic.ts"; import type { Span } from "../../source.ts"; import { type ValueType } from "../../types.ts"; export interface ReadonlyAdvisoryHost { readonly sourceText: string; advise(code: string, message: string, span: Span, fix?: DiagnosticFix): void; fieldsOf(identity: string): ReadonlyMap | null; readonlyFieldsOf(identity: string): ReadonlySet | null; } export declare function adviseReadonlyDeclaration(host: ReadonlyAdvisoryHost, declaration: TypeDeclaration): void; export declare function adviseReadonlyView(host: ReadonlyAdvisoryHost, syntax: Extract, inner: ValueType): void; //# sourceMappingURL=readonly.d.ts.map