declare const restLib: import("@cadl-lang/compiler").CadlLibrary<{ "http-verb-duplicate": { readonly default: import("@cadl-lang/compiler").CallableMessage<["entityName"]>; }; "http-verb-wrong-type": { readonly default: import("@cadl-lang/compiler").CallableMessage<["verb", "entityKind"]>; }; "operation-resource-wrong-type": { readonly default: import("@cadl-lang/compiler").CallableMessage<["operation", "kind"]>; }; "not-key-type": { readonly default: "Cannot copy keys from a non-key type (KeysOf or ParentKeysOf)"; }; "resource-missing-key": { readonly default: import("@cadl-lang/compiler").CallableMessage<["modelName"]>; }; "resource-missing-error": { readonly default: import("@cadl-lang/compiler").CallableMessage<["modelName"]>; }; "duplicate-key": { readonly default: import("@cadl-lang/compiler").CallableMessage<["resourceName"]>; }; "duplicate-parent-key": { readonly default: import("@cadl-lang/compiler").CallableMessage<["resourceName", "keyName"]>; }; "missing-path-param": { readonly default: import("@cadl-lang/compiler").CallableMessage<["param"]>; }; "optional-path-param": { readonly default: import("@cadl-lang/compiler").CallableMessage<["paramName"]>; }; "missing-server-param": { readonly default: import("@cadl-lang/compiler").CallableMessage<["param"]>; }; "duplicate-body": { readonly default: "Operation has multiple @body parameters declared"; readonly duplicateUnannotated: "Operation has multiple unannotated parameters. There can only be one representing the body"; readonly bodyAndUnannotated: "Operation has a @body and an unannotated parameter. There can only be one representing the body"; }; "duplicate-route-decorator": { readonly namespace: "@route was defined twice on this namespace and has different values."; }; "operation-param-duplicate-type": { readonly default: import("@cadl-lang/compiler").CallableMessage<["paramName", "types"]>; }; "duplicate-operation": { readonly default: import("@cadl-lang/compiler").CallableMessage<["operationName", "verb", "path"]>; }; "status-code-invalid": { readonly default: "statusCode value must be a numeric or string literal or union of numeric or string literals"; readonly value: "statusCode value must be a three digit code between 100 and 599"; }; "content-type-string": { readonly default: "contentType parameter must be a string literal or union of string literals"; }; "duplicate-response": { readonly default: import("@cadl-lang/compiler").CallableMessage<["contentType", "statusCode"]>; }; "content-type-ignored": { readonly default: "`Content-Type` header ignored because there is no body."; }; "no-routes": { readonly default: "Current spec is not exposing any routes. This could be to not having the service namespace marked with @service."; }; "invalid-type-for-auth": { readonly default: import("@cadl-lang/compiler").CallableMessage<["kind"]>; }; "shared-boolean": { readonly default: "shared parameter must be a boolean."; }; "write-visibility-not-supported": { readonly default: "@visibility(\"write\") is not supported. Use @visibility(\"update\"), @visibility(\"create\") or @visibility(\"create\", \"update\") as appropriate."; }; "multipart-model": { readonly default: "Multipart request body must be a model."; }; }, Record>; declare const reportDiagnostic: ; }; "http-verb-wrong-type": { readonly default: import("@cadl-lang/compiler").CallableMessage<["verb", "entityKind"]>; }; "operation-resource-wrong-type": { readonly default: import("@cadl-lang/compiler").CallableMessage<["operation", "kind"]>; }; "not-key-type": { readonly default: "Cannot copy keys from a non-key type (KeysOf or ParentKeysOf)"; }; "resource-missing-key": { readonly default: import("@cadl-lang/compiler").CallableMessage<["modelName"]>; }; "resource-missing-error": { readonly default: import("@cadl-lang/compiler").CallableMessage<["modelName"]>; }; "duplicate-key": { readonly default: import("@cadl-lang/compiler").CallableMessage<["resourceName"]>; }; "duplicate-parent-key": { readonly default: import("@cadl-lang/compiler").CallableMessage<["resourceName", "keyName"]>; }; "missing-path-param": { readonly default: import("@cadl-lang/compiler").CallableMessage<["param"]>; }; "optional-path-param": { readonly default: import("@cadl-lang/compiler").CallableMessage<["paramName"]>; }; "missing-server-param": { readonly default: import("@cadl-lang/compiler").CallableMessage<["param"]>; }; "duplicate-body": { readonly default: "Operation has multiple @body parameters declared"; readonly duplicateUnannotated: "Operation has multiple unannotated parameters. There can only be one representing the body"; readonly bodyAndUnannotated: "Operation has a @body and an unannotated parameter. There can only be one representing the body"; }; "duplicate-route-decorator": { readonly namespace: "@route was defined twice on this namespace and has different values."; }; "operation-param-duplicate-type": { readonly default: import("@cadl-lang/compiler").CallableMessage<["paramName", "types"]>; }; "duplicate-operation": { readonly default: import("@cadl-lang/compiler").CallableMessage<["operationName", "verb", "path"]>; }; "status-code-invalid": { readonly default: "statusCode value must be a numeric or string literal or union of numeric or string literals"; readonly value: "statusCode value must be a three digit code between 100 and 599"; }; "content-type-string": { readonly default: "contentType parameter must be a string literal or union of string literals"; }; "duplicate-response": { readonly default: import("@cadl-lang/compiler").CallableMessage<["contentType", "statusCode"]>; }; "content-type-ignored": { readonly default: "`Content-Type` header ignored because there is no body."; }; "no-routes": { readonly default: "Current spec is not exposing any routes. This could be to not having the service namespace marked with @service."; }; "invalid-type-for-auth": { readonly default: import("@cadl-lang/compiler").CallableMessage<["kind"]>; }; "shared-boolean": { readonly default: "shared parameter must be a boolean."; }; "write-visibility-not-supported": { readonly default: "@visibility(\"write\") is not supported. Use @visibility(\"update\"), @visibility(\"create\") or @visibility(\"create\", \"update\") as appropriate."; }; "multipart-model": { readonly default: "Multipart request body must be a model."; }; }[C]>(program: import("@cadl-lang/compiler").Program, diag: import("@cadl-lang/compiler").DiagnosticReport<{ "http-verb-duplicate": { readonly default: import("@cadl-lang/compiler").CallableMessage<["entityName"]>; }; "http-verb-wrong-type": { readonly default: import("@cadl-lang/compiler").CallableMessage<["verb", "entityKind"]>; }; "operation-resource-wrong-type": { readonly default: import("@cadl-lang/compiler").CallableMessage<["operation", "kind"]>; }; "not-key-type": { readonly default: "Cannot copy keys from a non-key type (KeysOf or ParentKeysOf)"; }; "resource-missing-key": { readonly default: import("@cadl-lang/compiler").CallableMessage<["modelName"]>; }; "resource-missing-error": { readonly default: import("@cadl-lang/compiler").CallableMessage<["modelName"]>; }; "duplicate-key": { readonly default: import("@cadl-lang/compiler").CallableMessage<["resourceName"]>; }; "duplicate-parent-key": { readonly default: import("@cadl-lang/compiler").CallableMessage<["resourceName", "keyName"]>; }; "missing-path-param": { readonly default: import("@cadl-lang/compiler").CallableMessage<["param"]>; }; "optional-path-param": { readonly default: import("@cadl-lang/compiler").CallableMessage<["paramName"]>; }; "missing-server-param": { readonly default: import("@cadl-lang/compiler").CallableMessage<["param"]>; }; "duplicate-body": { readonly default: "Operation has multiple @body parameters declared"; readonly duplicateUnannotated: "Operation has multiple unannotated parameters. There can only be one representing the body"; readonly bodyAndUnannotated: "Operation has a @body and an unannotated parameter. There can only be one representing the body"; }; "duplicate-route-decorator": { readonly namespace: "@route was defined twice on this namespace and has different values."; }; "operation-param-duplicate-type": { readonly default: import("@cadl-lang/compiler").CallableMessage<["paramName", "types"]>; }; "duplicate-operation": { readonly default: import("@cadl-lang/compiler").CallableMessage<["operationName", "verb", "path"]>; }; "status-code-invalid": { readonly default: "statusCode value must be a numeric or string literal or union of numeric or string literals"; readonly value: "statusCode value must be a three digit code between 100 and 599"; }; "content-type-string": { readonly default: "contentType parameter must be a string literal or union of string literals"; }; "duplicate-response": { readonly default: import("@cadl-lang/compiler").CallableMessage<["contentType", "statusCode"]>; }; "content-type-ignored": { readonly default: "`Content-Type` header ignored because there is no body."; }; "no-routes": { readonly default: "Current spec is not exposing any routes. This could be to not having the service namespace marked with @service."; }; "invalid-type-for-auth": { readonly default: import("@cadl-lang/compiler").CallableMessage<["kind"]>; }; "shared-boolean": { readonly default: "shared parameter must be a boolean."; }; "write-visibility-not-supported": { readonly default: "@visibility(\"write\") is not supported. Use @visibility(\"update\"), @visibility(\"create\") or @visibility(\"create\", \"update\") as appropriate."; }; "multipart-model": { readonly default: "Multipart request body must be a model."; }; }, C, M>) => void, createDiagnostic: ; }; "http-verb-wrong-type": { readonly default: import("@cadl-lang/compiler").CallableMessage<["verb", "entityKind"]>; }; "operation-resource-wrong-type": { readonly default: import("@cadl-lang/compiler").CallableMessage<["operation", "kind"]>; }; "not-key-type": { readonly default: "Cannot copy keys from a non-key type (KeysOf or ParentKeysOf)"; }; "resource-missing-key": { readonly default: import("@cadl-lang/compiler").CallableMessage<["modelName"]>; }; "resource-missing-error": { readonly default: import("@cadl-lang/compiler").CallableMessage<["modelName"]>; }; "duplicate-key": { readonly default: import("@cadl-lang/compiler").CallableMessage<["resourceName"]>; }; "duplicate-parent-key": { readonly default: import("@cadl-lang/compiler").CallableMessage<["resourceName", "keyName"]>; }; "missing-path-param": { readonly default: import("@cadl-lang/compiler").CallableMessage<["param"]>; }; "optional-path-param": { readonly default: import("@cadl-lang/compiler").CallableMessage<["paramName"]>; }; "missing-server-param": { readonly default: import("@cadl-lang/compiler").CallableMessage<["param"]>; }; "duplicate-body": { readonly default: "Operation has multiple @body parameters declared"; readonly duplicateUnannotated: "Operation has multiple unannotated parameters. There can only be one representing the body"; readonly bodyAndUnannotated: "Operation has a @body and an unannotated parameter. There can only be one representing the body"; }; "duplicate-route-decorator": { readonly namespace: "@route was defined twice on this namespace and has different values."; }; "operation-param-duplicate-type": { readonly default: import("@cadl-lang/compiler").CallableMessage<["paramName", "types"]>; }; "duplicate-operation": { readonly default: import("@cadl-lang/compiler").CallableMessage<["operationName", "verb", "path"]>; }; "status-code-invalid": { readonly default: "statusCode value must be a numeric or string literal or union of numeric or string literals"; readonly value: "statusCode value must be a three digit code between 100 and 599"; }; "content-type-string": { readonly default: "contentType parameter must be a string literal or union of string literals"; }; "duplicate-response": { readonly default: import("@cadl-lang/compiler").CallableMessage<["contentType", "statusCode"]>; }; "content-type-ignored": { readonly default: "`Content-Type` header ignored because there is no body."; }; "no-routes": { readonly default: "Current spec is not exposing any routes. This could be to not having the service namespace marked with @service."; }; "invalid-type-for-auth": { readonly default: import("@cadl-lang/compiler").CallableMessage<["kind"]>; }; "shared-boolean": { readonly default: "shared parameter must be a boolean."; }; "write-visibility-not-supported": { readonly default: "@visibility(\"write\") is not supported. Use @visibility(\"update\"), @visibility(\"create\") or @visibility(\"create\", \"update\") as appropriate."; }; "multipart-model": { readonly default: "Multipart request body must be a model."; }; }[C]>(diag: import("@cadl-lang/compiler").DiagnosticReport<{ "http-verb-duplicate": { readonly default: import("@cadl-lang/compiler").CallableMessage<["entityName"]>; }; "http-verb-wrong-type": { readonly default: import("@cadl-lang/compiler").CallableMessage<["verb", "entityKind"]>; }; "operation-resource-wrong-type": { readonly default: import("@cadl-lang/compiler").CallableMessage<["operation", "kind"]>; }; "not-key-type": { readonly default: "Cannot copy keys from a non-key type (KeysOf or ParentKeysOf)"; }; "resource-missing-key": { readonly default: import("@cadl-lang/compiler").CallableMessage<["modelName"]>; }; "resource-missing-error": { readonly default: import("@cadl-lang/compiler").CallableMessage<["modelName"]>; }; "duplicate-key": { readonly default: import("@cadl-lang/compiler").CallableMessage<["resourceName"]>; }; "duplicate-parent-key": { readonly default: import("@cadl-lang/compiler").CallableMessage<["resourceName", "keyName"]>; }; "missing-path-param": { readonly default: import("@cadl-lang/compiler").CallableMessage<["param"]>; }; "optional-path-param": { readonly default: import("@cadl-lang/compiler").CallableMessage<["paramName"]>; }; "missing-server-param": { readonly default: import("@cadl-lang/compiler").CallableMessage<["param"]>; }; "duplicate-body": { readonly default: "Operation has multiple @body parameters declared"; readonly duplicateUnannotated: "Operation has multiple unannotated parameters. There can only be one representing the body"; readonly bodyAndUnannotated: "Operation has a @body and an unannotated parameter. There can only be one representing the body"; }; "duplicate-route-decorator": { readonly namespace: "@route was defined twice on this namespace and has different values."; }; "operation-param-duplicate-type": { readonly default: import("@cadl-lang/compiler").CallableMessage<["paramName", "types"]>; }; "duplicate-operation": { readonly default: import("@cadl-lang/compiler").CallableMessage<["operationName", "verb", "path"]>; }; "status-code-invalid": { readonly default: "statusCode value must be a numeric or string literal or union of numeric or string literals"; readonly value: "statusCode value must be a three digit code between 100 and 599"; }; "content-type-string": { readonly default: "contentType parameter must be a string literal or union of string literals"; }; "duplicate-response": { readonly default: import("@cadl-lang/compiler").CallableMessage<["contentType", "statusCode"]>; }; "content-type-ignored": { readonly default: "`Content-Type` header ignored because there is no body."; }; "no-routes": { readonly default: "Current spec is not exposing any routes. This could be to not having the service namespace marked with @service."; }; "invalid-type-for-auth": { readonly default: import("@cadl-lang/compiler").CallableMessage<["kind"]>; }; "shared-boolean": { readonly default: "shared parameter must be a boolean."; }; "write-visibility-not-supported": { readonly default: "@visibility(\"write\") is not supported. Use @visibility(\"update\"), @visibility(\"create\") or @visibility(\"create\", \"update\") as appropriate."; }; "multipart-model": { readonly default: "Multipart request body must be a model."; }; }, C, M>) => import("@cadl-lang/compiler").Diagnostic, createStateSymbol: (name: string) => symbol; export { restLib, reportDiagnostic, createDiagnostic, createStateSymbol }; //# sourceMappingURL=lib.d.ts.map