import { SvelteComponent } from "svelte"; export type Options = { tenancyId: string; clientId: string; endpoint?: string; context: Context; apple: { clientId: string; redirectURL?: string; }; }; import type { Context } from './context.js'; declare const __propDef: { props: { options: Options; }; events: { principal: CustomEvent; } & { [evt: string]: CustomEvent; }; slots: { default: { click: () => Promise; submitting: boolean; }; error: { error: string; }; }; exports?: {} | undefined; bindings?: string | undefined; }; export type AppleProps = typeof __propDef.props; export type AppleEvents = typeof __propDef.events; export type AppleSlots = typeof __propDef.slots; /** * Displays a `Sign in with Apple` button. * * **IMPORTANT**: You will need to enter your Apple Client ID in your Passlock * settings - https://console.passlock.dev/settings (near the bottom under * 'Social Login'). You will also need to run your app (even during development) * on a publicly accessible https url. We recommend something like ngrok. * * ## Passlock integration * When the user signs in, this component interacts with the Passlock backend * to register or authenticate the user. Passlock will handle the id_token * verification. Following a successful sign up event you should see a new * user in your Passlock console. * * Ultimately this component fires a custom 'principal' event, containing the * Passlock Principal. * * ## Duplicate accounts warnings * If the user tries to register or sign in with their Apple account but they * already registered a passkey (with the same email address) they will be prompted * to authenticate using their passkey instead. */ export default class Apple extends SvelteComponent { } export {};