import { AfterViewInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
import type { ScreenAudioChoice } from 'mediasfu-shared';
import * as i0 from "@angular/core";
export interface ScreenAudioPromptOptions {
/** Dark styling (default: follows the system colour scheme). */
isDarkMode?: boolean;
title?: string;
message?: string;
shareWithAudioLabel?: string;
shareWithAudioHint?: string;
shareScreenOnlyLabel?: string;
shareScreenOnlyHint?: string;
cancelLabel?: string;
/** Small note under the choices (e.g. where the browser's own audio switch is). */
footnote?: string;
/** Badge on the audio choice; empty string hides it. */
recommendedLabel?: string;
}
/** Injection token for the options when the prompt is created with an injector. */
export declare const SCREEN_AUDIO_PROMPT_OPTIONS = "screenAudioPromptOptions";
/**
* Asks whether a screen share should include the audio of the shared tab or screen. The browser's own picker opens
* after the choice, so the user still decides what to share there. Emits `choice` once with `audio`, `video`
* (screen only) or `null` (cancelled). Esc and a click on the backdrop cancel.
*
* Usually shown through `ScreenAudioPromptService.ask()`, which the room components pass to the screen-share flow when
* the media server supports screen audio and the browser can capture it (Chromium desktop).
*
* @example
* ```html
*
* ```
*/
export declare class ScreenAudioPromptComponent implements AfterViewInit, OnDestroy {
isDarkMode?: boolean;
title: string;
message: string;
shareWithAudioLabel: string;
shareWithAudioHint: string;
shareScreenOnlyLabel: string;
shareScreenOnlyHint: string;
cancelLabel: string;
footnote: string;
recommendedLabel: string;
/** Emits once with `audio`, `video` or `null` (cancelled). */
choice: EventEmitter;
primaryButton?: ElementRef;
hovered: 'audio' | 'video' | null;
private chosen;
constructor(injectedOptions?: ScreenAudioPromptOptions | null);
/** Copies the defined options onto the inputs (undefined values keep the defaults). */
applyOptions(options: ScreenAudioPromptOptions): void;
ngAfterViewInit(): void;
ngOnDestroy(): void;
onKeydown(event: KeyboardEvent): void;
onBackdropClick(event: Event): void;
choose(choice: ScreenAudioChoice): void;
colors(): {
scrim: string;
panel: string;
border: string;
text: string;
muted: string;
tile: string;
tileBorder: string;
accent: string;
accentSoft: string;
accentLine: string;
icon: string;
onAccent: string;
shadow: string;
};
scrimStyle(): Record;
panelStyle(): Record;
readonly closeButtonStyle: {
position: string;
top: string;
right: string;
width: string;
height: string;
borderRadius: string;
border: string;
background: string;
display: string;
placeItems: string;
cursor: string;
};
readonly titleStyle: {
margin: string;
fontSize: string;
fontWeight: number;
letterSpacing: string;
};
messageStyle(): Record;
tileStyle(choice: 'audio' | 'video'): Record;
iconWellStyle(choice: 'audio' | 'video'): Record;
badgeStyle(): Record;
readonly footerStyle: {
display: string;
alignItems: string;
justifyContent: string;
gap: string;
marginTop: string;
};
cancelButtonStyle(): Record;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵcmp: i0.ɵɵComponentDeclaration;
}