import { CommonMarkString, URLString } from '@fresha/api-tools-core'; import { Callback } from './Callback'; import { Example } from './Example'; import { Header } from './Header'; import { Link } from './Link'; import { Node } from './Node'; import { CookieParameter, HeaderParameter, Parameter, PathParameter, QueryParameter } from './Parameter'; import { PathItem } from './PathItem'; import { RequestBody } from './RequestBody'; import { Response } from './Response'; import { Schema } from './Schema'; import { APIKeySecuritySchema, HTTPSecuritySchema, MutualTLSSecuritySchema, OAuth2SecuritySchema, OpenIDConnectSecuritySchema, SecuritySchema } from './SecuritySchema'; import type { OpenAPI } from './OpenAPI'; import type { APIKeySecuritySchemaLocation, ComponentsModel } from './types'; type ComponentsParent = OpenAPI; export declare class Components extends Node implements ComponentsModel { #private; constructor(parent: ComponentsParent); get schemaCount(): number; schemaKeys(): IterableIterator; schemas(): IterableIterator<[string, Schema]>; hasSchema(key: string): boolean; addSchema(key: string): Schema; deleteSchema(key: string): void; clearSchemas(): void; get responseCount(): number; responseKeys(): IterableIterator; responses(): IterableIterator<[string, Response]>; hasResponse(key: string): boolean; addResponse(key: string, description: CommonMarkString): Response; deleteResponse(key: string): void; clearResponse(): void; get parameterCount(): number; parameterKeys(): IterableIterator; parameters(): IterableIterator<[string, Parameter]>; hasParameter(key: string): boolean; addParameter(key: string, name: string, location: 'path'): PathParameter; addParameter(key: string, name: string, location: 'query'): QueryParameter; addParameter(key: string, name: string, location: 'header'): HeaderParameter; addParameter(key: string, name: string, location: 'cookie'): CookieParameter; deleteParameter(key: string): void; clearParameters(): void; get exampleCount(): number; exampleKeys(): IterableIterator; examples(): IterableIterator<[string, Example]>; hasExample(key: string): boolean; addExample(key: string): Example; deleteExample(key: string): void; clearExamples(): void; get requestBodyCount(): number; requestBodyKeys(): IterableIterator; requestBodies(): IterableIterator<[string, RequestBody]>; hasRequestBody(key: string): boolean; addRequestBody(key: string): RequestBody; deleteRequestBody(key: string): void; clearRequestBodies(): void; get headerCount(): number; headerKeys(): IterableIterator; headers(): IterableIterator<[string, Header]>; hasHeader(key: string): boolean; addHeader(key: string): Header; deleteHeader(key: string): void; clearHeaders(): void; get securitySchemaCount(): number; securitySchemaKeys(): IterableIterator; securitySchemas(): IterableIterator<[string, SecuritySchema]>; hasSecuritySchema(key: string): boolean; addSecuritySchema(key: string, type: 'apiKey', name: string, location: APIKeySecuritySchemaLocation): APIKeySecuritySchema; addSecuritySchema(key: string, type: 'http'): HTTPSecuritySchema; addSecuritySchema(key: string, type: 'mutualTLS'): MutualTLSSecuritySchema; addSecuritySchema(key: string, type: 'oauth2'): OAuth2SecuritySchema; addSecuritySchema(key: string, type: 'openIdConnect', connectUrl: URLString): OpenIDConnectSecuritySchema; deleteSecuritySchema(key: string): void; clearSecuritySchemas(): void; get linkCount(): number; linkKeys(): IterableIterator; links(): IterableIterator<[string, Link]>; hasLink(key: string): boolean; addLink(key: string): Link; deleteLink(key: string): void; clearLinks(): void; get callbackCount(): number; callbackKeys(): IterableIterator; callbacks(): IterableIterator<[string, Callback]>; hasCallback(key: string): boolean; addCallback(key: string): Callback; deleteCallback(key: string): void; clearCallbacks(): void; get pathItemCount(): number; pathItemKeys(): IterableIterator; pathItems(): IterableIterator<[string, PathItem]>; hasPathItem(key: string): boolean; addPathItem(key: string): PathItem; deletePathItem(key: string): void; clearPathItems(): void; } export {}; //# sourceMappingURL=Components.d.ts.map