@arc-publishing/sdk-amp
Version:
Arc AMP SDK to work with Google AMP Pages
22 lines (21 loc) • 659 B
TypeScript
export interface InjectableIdentity {
heartbeat: Function;
isLoggedIn: Function;
userIdentity: {
accessToken?: string;
};
options: Function;
ampReaderId?: string | null | undefined;
}
export interface IdentityType {
heartbeat: Function;
isLoggedIn: Function;
userIdentity: {
accessToken?: string;
};
ampReaderId?: string | null | undefined;
options: Function;
apiOrigin?: string;
}
export declare function isInjectableIdentity(identity: InjectableIdentity | any): identity is InjectableIdentity;
export declare function isArcIdentity(identity: IdentityType | any): identity is IdentityType;