import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core'; import { NgControl } from '@angular/forms'; import { TranslocoScope } from '@jsverse/transloco'; import { NggvBaseControlValueAccessorComponent } from '@sebgroup/green-angular/src/v-angular/base-control-value-accessor'; import * as i0 from "@angular/core"; export type ButtonTypes = 'button' | 'submit' | 'reset' | 'link'; export declare enum ButtonStyle { Primary = 0, Secondary = 1, Alternative = 2, Delete = 3, DeleteConfirm = 4, Ghost = 5, GhostDark = 6, Link = 7 } /** * Buttons allow users to take action with a single tap. * https://designlibrary.sebgroup.com/components/component-button */ export declare class NggvButtonComponent extends NggvBaseControlValueAccessorComponent implements OnInit, OnChanges { ngControl: NgControl; protected translocoScope: TranslocoScope; protected cdr: ChangeDetectorRef; /** Special property used for selecting DOM elements during automated UI testing. */ thook: string | null | undefined; /** Type of button to one of button|submit|reset|link, where link creates an anchor tag. */ type: ButtonTypes; /** Style of the button to one of Primary|Secondary|Alternative|Delete|DeleteConfirm|Ghost|GhostDark|Link. */ buttonStyle: ButtonStyle; /** Size of the button to be smaller. */ small: boolean; /** Where the button should link to if {@link ButtonTypes} is set to link. */ href?: string; /** @internal Determines if the the href property should use internal routing. */ external: boolean; /** @internal The classes determined by the buttonStyle and small properties. */ buttonClasses: { [className: string]: boolean; }; /** Emits click events triggered by the button or link. * Use instead of click to avoid triggering events on disabled buttons and links. */ nggvClick: EventEmitter; constructor(ngControl: NgControl, translocoScope: TranslocoScope, cdr: ChangeDetectorRef); /** @internal */ static buttonStyleClasses(type: ButtonStyle, small: boolean): { small: boolean; primary: boolean; secondary: boolean; tertiary: boolean; danger: boolean; ghost: boolean; 'ghost-light': boolean; }; ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; /** @internal */ onClick(event: Event): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }