import * as ng_primitives_button from 'ng-primitives/button'; import * as _angular_core from '@angular/core'; import { Signal } from '@angular/core'; import { BooleanInput } from '@angular/cdk/coercion'; import * as ng_primitives_state from 'ng-primitives/state'; declare class NgpButton { /** * Whether the button is disabled. Use `'soft'` for an aria-disabled * button that stays focusable; events still fire, so guard your handlers. */ readonly disabled: _angular_core.InputSignalWithTransform; /** * The button state. */ protected readonly state: ng_primitives_button.NgpButtonState; /** * Set the disabled state of the button. * @param value The disabled state. */ setDisabled(value: boolean | 'soft'): void; /** @internal */ registerDisabledSource(source: Signal): void; /** @internal */ unregisterDisabledSource(source: Signal): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } interface NgpButtonState { /** Disabled state. `'soft'` means aria-disabled but still focusable. */ readonly disabled: Signal; /** Set the disabled state. `'soft'` keeps the button focusable. */ setDisabled(value: boolean | 'soft'): void; /** * Fully disable the button while `source` is true, on top of its own disabled state. * @internal */ registerDisabledSource(source: Signal): void; /** * Stop following a source added with `registerDisabledSource`. * @internal */ unregisterDisabledSource(source: Signal): void; } interface NgpButtonProps { /** Disabled state. `'soft'` means aria-disabled but still focusable. */ readonly disabled?: Signal; } declare const ngpButton: ({ disabled: _disabled }: NgpButtonProps) => NgpButtonState; declare const injectButtonState: { (): Signal; (options: ng_primitives_state.StateInjectionOptions): Signal; (options?: ng_primitives_state.StateInjectionOptions): Signal | Signal; }; declare const provideButtonState: (opts?: { inherit?: boolean; }) => _angular_core.FactoryProvider; export { NgpButton, injectButtonState, ngpButton, provideButtonState }; export type { NgpButtonProps, NgpButtonState };