import type { HttpContext } from '@adonisjs/core/http'; import { BaseComponent } from './base_component.js'; import type { ApplicationService, HttpRouterService } from '@adonisjs/core/types'; import { type InferValidationReturnType } from './features/support_validation/types.js'; interface ComponentOptions { ctx: HttpContext; app: ApplicationService; router: HttpRouterService; id: string; name: string; } declare const ComponentWithState: { new (...args: any[]): { forgetComputed(...names: (string | string[])[]): Promise; clearComputed(...names: (string | string[])[]): Promise; "__#170@#id": string; "__#170@#name": string; "__#170@#viewPath": string; "__#170@#view": ReturnType; "__#170@#viewData": Record; "__#170@#router": HttpRouterService; bindings: any; app: ApplicationService; ctx: HttpContext; __setRouter(router: HttpRouterService): void; __getRouter(): HttpRouterService; __id: string; __name: string; viewPath: string; view: ReturnType; viewData: Record; setId(id: string): void; getId(): string; setName(name: string): void; setViewPath(view: string): void; getName(): string; render(): Promise; skipRender(html?: string): void; transition(type?: string): void; skipTransition(): void; shouldSkipRender(): boolean; skipMount(): void; skipHydrate(): void; }; } & { new (...args: any[]): { fill(data: Record): /*elided*/ any; reset(...properties: (string | string[])[]): /*elided*/ any; resetExcept(...properties: (string | string[])[]): /*elided*/ any; pull(property: K): any; only(...properties: (string | string[])[]): Record; except(...properties: (string | string[])[]): Record; "__#170@#id": string; "__#170@#name": string; "__#170@#viewPath": string; "__#170@#view": ReturnType; "__#170@#viewData": Record; "__#170@#router": HttpRouterService; bindings: any; app: ApplicationService; ctx: HttpContext; __setRouter(router: HttpRouterService): void; __getRouter(): HttpRouterService; __id: string; __name: string; viewPath: string; view: ReturnType; viewData: Record; setId(id: string): void; getId(): string; setName(name: string): void; setViewPath(view: string): void; getName(): string; render(): Promise; skipRender(html?: string): void; transition(type?: string): void; skipTransition(): void; shouldSkipRender(): boolean; skipMount(): void; skipHydrate(): void; }; } & { new (...args: any[]): { stream(name: string, content: string, mode?: "replace" | "append"): void; "__#170@#id": string; "__#170@#name": string; "__#170@#viewPath": string; "__#170@#view": ReturnType; "__#170@#viewData": Record; "__#170@#router": HttpRouterService; bindings: any; app: ApplicationService; ctx: HttpContext; __setRouter(router: HttpRouterService): void; __getRouter(): HttpRouterService; __id: string; __name: string; viewPath: string; view: ReturnType; viewData: Record; setId(id: string): void; getId(): string; setName(name: string): void; setViewPath(view: string): void; getName(): string; render(): Promise; skipRender(html?: string): void; transition(type?: string): void; skipTransition(): void; shouldSkipRender(): boolean; skipMount(): void; skipHydrate(): void; }; } & { new (...args: any[]): { "__#176@#htmlAttributes": Record; withHtmlAttributes(attributes: Record): /*elided*/ any; getHtmlAttributes(): Record; "__#170@#id": string; "__#170@#name": string; "__#170@#viewPath": string; "__#170@#view": ReturnType; "__#170@#viewData": Record; "__#170@#router": HttpRouterService; bindings: any; app: ApplicationService; ctx: HttpContext; __setRouter(router: HttpRouterService): void; __getRouter(): HttpRouterService; __id: string; __name: string; viewPath: string; view: ReturnType; viewData: Record; setId(id: string): void; getId(): string; setName(name: string): void; setViewPath(view: string): void; getName(): string; render(): Promise; skipRender(html?: string): void; transition(type?: string): void; skipTransition(): void; shouldSkipRender(): boolean; skipMount(): void; skipHydrate(): void; }; } & { new (...args: any[]): { "__#175@#slotsForSkippedChildRenders": string[]; "__#175@#slots": Array; getSlotsForSkippedChildRenders(): string[]; withChildSlots(slots: Record, childId: string): void; getSlots(): Array; withSlots(slots: Record, parent: { getId(): string; } | null): /*elided*/ any; withPlaceholderSlots(slots: { name: string; componentId: string; parentId: string | null; }[]): /*elided*/ any; withHydratedSlots(slots: { name: string; content: string; componentId: string; parentId: string | null; }[]): /*elided*/ any; "__#170@#id": string; "__#170@#name": string; "__#170@#viewPath": string; "__#170@#view": ReturnType; "__#170@#viewData": Record; "__#170@#router": HttpRouterService; bindings: any; app: ApplicationService; ctx: HttpContext; __setRouter(router: HttpRouterService): void; __getRouter(): HttpRouterService; __id: string; __name: string; viewPath: string; view: ReturnType; viewData: Record; setId(id: string): void; getId(): string; setName(name: string): void; setViewPath(view: string): void; getName(): string; render(): Promise; skipRender(html?: string): void; transition(type?: string): void; skipTransition(): void; shouldSkipRender(): boolean; skipMount(): void; skipHydrate(): void; }; } & { new (...args: any[]): { "__#174@#getComponentData": () => Record; "__#174@#extractVineErrors": (error: any) => import("./features/support_validation/handles_validation.js").ErrorBag; getErrorBag(): import("./features/support_validation/handles_validation.js").ErrorBag; setErrorBag(bag: import("./features/support_validation/handles_validation.js").ErrorBag | Record): void; addError(field: string, message: string): void; resetErrorBag(fields?: string | string[]): void; clearValidation(fields?: string | string[]): void; resetValidation(fields?: string | string[]): void; hasError(field: string): boolean; getError(field: string): string[]; getFirstError(field: string): string | undefined; rules?(): import("@vinejs/vine/types").ConstructableSchema | undefined; validate(data?: Record): Promise>; "__#174@#buildSchemaFromValidators": () => Promise | undefined>; validateUsing>(schema: TSchema, data?: import("@vinejs/vine/types").InferInput | undefined): Promise>; "__#170@#id": string; "__#170@#name": string; "__#170@#viewPath": string; "__#170@#view": ReturnType; "__#170@#viewData": Record; "__#170@#router": HttpRouterService; bindings: any; app: ApplicationService; ctx: HttpContext; __setRouter(router: HttpRouterService): void; __getRouter(): HttpRouterService; __id: string; __name: string; viewPath: string; view: ReturnType; viewData: Record; setId(id: string): void; getId(): string; setName(name: string): void; setViewPath(view: string): void; getName(): string; render(): Promise; skipRender(html?: string): void; transition(type?: string): void; skipTransition(): void; shouldSkipRender(): boolean; skipMount(): void; skipHydrate(): void; }; } & { new (...args: any[]): { js(expression: string, ...params: unknown[]): void; "__#170@#id": string; "__#170@#name": string; "__#170@#viewPath": string; "__#170@#view": ReturnType; "__#170@#viewData": Record; "__#170@#router": HttpRouterService; bindings: any; app: ApplicationService; ctx: HttpContext; __setRouter(router: HttpRouterService): void; __getRouter(): HttpRouterService; __id: string; __name: string; viewPath: string; view: ReturnType; viewData: Record; setId(id: string): void; getId(): string; setName(name: string): void; setViewPath(view: string): void; getName(): string; render(): Promise; skipRender(html?: string): void; transition(type?: string): void; skipTransition(): void; shouldSkipRender(): boolean; skipMount(): void; skipHydrate(): void; }; } & { new (...args: any[]): { getDecorators(): import("./features/support_decorators/decorator.ts").Decorator[]; addDecorator(decorator: import("./features/support_decorators/decorator.ts").Decorator): void; "__#170@#id": string; "__#170@#name": string; "__#170@#viewPath": string; "__#170@#view": ReturnType; "__#170@#viewData": Record; "__#170@#router": HttpRouterService; bindings: any; app: ApplicationService; ctx: HttpContext; __setRouter(router: HttpRouterService): void; __getRouter(): HttpRouterService; __id: string; __name: string; viewPath: string; view: ReturnType; viewData: Record; setId(id: string): void; getId(): string; setName(name: string): void; setViewPath(view: string): void; getName(): string; render(): Promise; skipRender(html?: string): void; transition(type?: string): void; skipTransition(): void; shouldSkipRender(): boolean; skipMount(): void; skipHydrate(): void; }; } & { new (...args: any[]): { download(content: Buffer | string, name: string, contentType?: string): Promise; "__#170@#id": string; "__#170@#name": string; "__#170@#viewPath": string; "__#170@#view": ReturnType; "__#170@#viewData": Record; "__#170@#router": HttpRouterService; bindings: any; app: ApplicationService; ctx: HttpContext; __setRouter(router: HttpRouterService): void; __getRouter(): HttpRouterService; __id: string; __name: string; viewPath: string; view: ReturnType; viewData: Record; setId(id: string): void; getId(): string; setName(name: string): void; setViewPath(view: string): void; getName(): string; render(): Promise; skipRender(html?: string): void; transition(type?: string): void; skipTransition(): void; shouldSkipRender(): boolean; skipMount(): void; skipHydrate(): void; }; } & { new (...args: any[]): { redirect(url: string, navigate?: boolean): void; redirectRoute(name: string, paramsOrNavigate?: Record | boolean, navigate?: boolean): void; redirectAction(action: any, paramsOrNavigate?: Record | any[] | boolean, navigate?: boolean): void; redirectIntended(defaultUrl?: string, navigate?: boolean): void; "__#170@#id": string; "__#170@#name": string; "__#170@#viewPath": string; "__#170@#view": ReturnType; "__#170@#viewData": Record; "__#170@#router": HttpRouterService; bindings: any; app: ApplicationService; ctx: HttpContext; __setRouter(router: HttpRouterService): void; __getRouter(): HttpRouterService; __id: string; __name: string; viewPath: string; view: ReturnType; viewData: Record; setId(id: string): void; getId(): string; setName(name: string): void; setViewPath(view: string): void; getName(): string; render(): Promise; skipRender(html?: string): void; transition(type?: string): void; skipTransition(): void; shouldSkipRender(): boolean; skipMount(): void; skipHydrate(): void; }; } & { new (...args: any[]): { getListeners(): { [key: string]: string; }; dispatch(name: string, params?: any, to?: string, self?: boolean): import("./features/support_events/handles_events.js").DispatchedEvent; "__#170@#id": string; "__#170@#name": string; "__#170@#viewPath": string; "__#170@#view": ReturnType; "__#170@#viewData": Record; "__#170@#router": HttpRouterService; bindings: any; app: ApplicationService; ctx: HttpContext; __setRouter(router: HttpRouterService): void; __getRouter(): HttpRouterService; __id: string; __name: string; viewPath: string; view: ReturnType; viewData: Record; setId(id: string): void; getId(): string; setName(name: string): void; setViewPath(view: string): void; getName(): string; render(): Promise; skipRender(html?: string): void; transition(type?: string): void; skipTransition(): void; shouldSkipRender(): boolean; skipMount(): void; skipHydrate(): void; }; } & typeof BaseComponent; export declare class Component extends ComponentWithState { constructor({ ctx, app, router, id, name }: ComponentOptions); validate(data?: Record): Promise>; } export {};