import type { Ref } from 'vue'; import type { ConsentScriptTriggerOptions } from '../types.js'; interface UseConsentScriptTriggerApi extends Promise { /** * A function that can be called to accept the consent and load the script. */ accept: () => void; /** * A function that can be called to revoke consent and signal the script should be unloaded. */ revoke: () => void; /** * Reactive reference to the consent state */ consented: Ref; } /** * Load a script once consent has been provided either through a resolvable `consent` or calling the `accept` method. * Supports revoking consent via the reactive `consented` ref. Consumers should watch `consented` to react to revocation. * @param options */ export declare function useScriptTriggerConsent(options?: ConsentScriptTriggerOptions): UseConsentScriptTriggerApi; export {};