import { ElementProxy } from "yaml-scene/src/elements/ElementProxy"; import { IElement } from "yaml-scene/src/elements/IElement"; import Validate from "yaml-scene/src/elements/Validate"; import { LogLevel } from "yaml-scene/src/singleton/LoggerManager"; import { Method } from "./Method"; export default class Api implements IElement { proxy: ElementProxy; $$: IElement; $: this; logLevel?: LogLevel; title: string; description: string; doc: { tags: string[]; }; method: Method; baseURL: string; url: string; timeout?: number; query: any; params: any; headers: any; body: any; response: any; error: any; time: number; var: any; validate: ElementProxy[]; saveTo: string; fullUrl: string; config: any; private _controller; get contentType(): any; get responseContentType(): any; get curl(): string; init(props: any): void; prepare(): Promise; exec(): Promise; dispose(): Promise; cancel(): void; private printLog; private validateAPI; private applyToVar; }